Skip to content

Commit

Permalink
Uses NOT DEFINED for preset check
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBolitho committed Nov 17, 2024
1 parent fc659a7 commit 615a72a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enzyme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ add_definitions(-DENZYME_VERSION_PATCH=${ENZYME_PATCH_VERSION})
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if (NOT ENZYME_CONFIGURED_WITH_PRESETS)
if (NOT DEFINED ENZYME_CONFIGURED_WITH_PRESETS)
set(CMAKE_CXX_FLAGS "-Wall -fno-rtti ${CMAKE_CXX_FLAGS} -Werror=unused-variable -Werror=dangling-else -Werror=unused-but-set-variable -Werror=return-type -Werror=nonnull -Werror=unused-result -Werror=reorder -Werror=switch")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
Expand Down
2 changes: 1 addition & 1 deletion enzyme/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"CMAKE_CXX_STANDARD": "17",
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"ENZYME_CONFIGURED_WITH_PRESETS": "TRUE"
"ENZYME_CONFIGURED_WITH_PRESETS": "ON"
}
},
{
Expand Down

0 comments on commit 615a72a

Please sign in to comment.