diff --git a/CMakeLists.txt b/CMakeLists.txt index b7c84acbd..546ce6f20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,11 +92,6 @@ set(SRB2_CONFIG_ASSET_DIRECTORY "" CACHE PATH "Path to directory that contains a option(SRB2_CONFIG_LTO "Enable link time optimizations, improves performance at the cost of longer link times." ON) option(SRB2_CONFIG_TIDY "Enable clang tiny, checks compiled code for issues at the cost of longer compile times." OFF) -if(SRB2_CONFIG_NOVERIFYIWADS) - target_compile_definitions(SRB2SDL2 PRIVATE -DNOVERIFYIWADS) -endif() - - if(SRB2_CONFIG_ENABLE_TESTS) # https://github.com/catchorg/Catch2 CPMAddPackage( diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 78191082d..0478bcb71 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -232,6 +232,10 @@ if(SRB2_CONFIG_TIDY) set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=*") endif() +if(SRB2_CONFIG_NOVERIFYIWADS) + target_compile_definitions(SRB2SDL2 PRIVATE -DNOVERIFYIWADS) +endif() + add_subdirectory(blua) add_subdirectory(blan) add_subdirectory(sdl)