Skip to content

Commit 599c0f1

Browse files
committed
fix: fix bug in parsing the arguments caused by renaming
1 parent 8786dcc commit 599c0f1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Index.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ macro(project_options)
6161
set(oneValueArgs MSVC_WARNINGS CLANG_WARNINGS GCC_WARNINGS)
6262
set(multiValueArgs PCH_HEADERS CONAN_OPTIONS)
6363
cmake_parse_arguments(
64-
project_options
64+
ProjectOptions
6565
"${options}"
6666
"${oneValueArgs}"
6767
"${multiValueArgs}"

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ project_options(
3535
# ENABLE_USER_LINKER
3636
# ENABLE_BUILD_WITH_TIME_TRACE
3737
ENABLE_UNITY
38-
ENABLE_SANITIZER_ADDRESS
38+
# ENABLE_SANITIZER_ADDRESS
3939
# ENABLE_SANITIZER_LEAK
4040
# ENABLE_SANITIZER_UNDEFINED_BEHAVIOR
4141
# ENABLE_SANITIZER_THREAD

test/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ int main() {
2626
fmt::print("{}", eigen_vec);
2727

2828
// trigger address sanitizer
29-
int *p = nullptr;
30-
*p = 1;
29+
// int *p = nullptr;
30+
// *p = 1;
3131
}

0 commit comments

Comments
 (0)