Skip to content
Snippets Groups Projects
Commit 55c97280 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[CMake] Replace RUN_TESTS by BUILD_TESTING

parent a02d95ec
No related branches found
No related tags found
No related merge requests found
......@@ -75,11 +75,11 @@ if (BUILD_PYTHON_INTERFACE)
endif ()
# Add a cache variable to allow not compiling and running tests
set (RUN_TESTS TRUE CACHE BOOL "compile and run unit tests")
set (BUILD_TESTING TRUE CACHE BOOL "compile and run unit tests")
# Required dependencies
set(BOOST_COMPONENTS thread date_time system)
if (RUN_TESTS)
if (BUILD_TESTING)
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} filesystem unit_test_framework chrono)
endif ()
if (BUILD_PYTHON_INTERFACE)
......@@ -156,7 +156,7 @@ add_subdirectory(src)
if (BUILD_PYTHON_INTERFACE)
add_subdirectory(python)
endif ()
if (RUN_TESTS)
if (BUILD_TESTING)
add_subdirectory(test)
endif ()
......
......@@ -16,7 +16,7 @@ endmacro(add_fcl_test)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
IF(RUN_TESTS)
IF(BUILD_TESTING)
add_library(utility STATIC utility.cpp)
ELSE()
add_library(utility STATIC EXCLUDE_FROM_ALL utility.cpp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment