Commit 13174c41 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

fix ill-defined variable EVALHYD_TESTING_OS

1 merge request!3release v0.1.0
Pipeline #43254 passed with stage
in 2 minutes and 31 seconds
Showing with 13 additions and 10 deletions
+13 -10
......@@ -8,25 +8,28 @@ find_package(GTest REQUIRED)
# ------------------------------------------------------------------------------
# build
# ------------------------------------------------------------------------------
add_executable(
evalhyd_tests
test_determinist.cpp
test_probabilist.cpp
test_uncertainty.cpp
)
OPTION(EVALHYD_TESTING_OS "OS system used to run tests")
if(CMAKE_HOST_APPLE)
set(EVALHYD_TESTING_OS "MACOS")
target_compile_definitions(evalhyd_tests PRIVATE EVALHYD_TESTING_OS MACOS)
message(STATUS "Found supported OS to run tests: APPLE")
elseif(CMAKE_HOST_WIN32)
set(EVALHYD_TESTING_OS "WINDOWS")
target_compile_definitions(evalhyd_tests PRIVATE EVALHYD_TESTING_OS WINDOWS)
message(STATUS "Found supported OS to run tests: WIN32")
elseif(CMAKE_HOST_UNIX)
set(EVALHYD_TESTING_OS "LINUX")
target_compile_definitions(evalhyd_tests PRIVATE EVALHYD_TESTING_OS LINUX)
message(STATUS "Found supported OS to run tests: UNIX")
else()
message(SEND_ERROR "OS not supported to run tests")
endif()
add_executable(
evalhyd_tests
test_determinist.cpp
test_probabilist.cpp
test_uncertainty.cpp
)
set_target_properties(
evalhyd_tests
PROPERTIES
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment