diff --git a/enzyme/CMakeLists.txt b/enzyme/CMakeLists.txt index 6033f236a48..2ba42e969ce 100644 --- a/enzyme/CMakeLists.txt +++ b/enzyme/CMakeLists.txt @@ -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") diff --git a/enzyme/CMakePresets.json b/enzyme/CMakePresets.json index 55fdaa121cb..1a5ffa80c5d 100644 --- a/enzyme/CMakePresets.json +++ b/enzyme/CMakePresets.json @@ -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" } }, {