diff --git a/CMakeLists.txt b/CMakeLists.txt index e000e6e..80deac7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,7 @@ if(AARE_USE_WARNINGS) ) endif() -if(AARE_BUILD_TESTS) +if(AARE_TESTS) add_subdirectory(tests) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 26c8e4e..159e7ae 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -28,5 +28,4 @@ if(AARE_BUILD_TESTS) #Work around to remove, this is not the way to do it =) # target_include_directories(tests PRIVATE ${CMAKE_SOURCE_DIR}/include/common) target_link_libraries(tests PRIVATE core aare_compiler_flags) - endif() \ No newline at end of file