Verified Commit 748992f1 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: fix ADD_PINOCCHIO_PARALLEL_UNIT_TEST

parent 8ca3b827
Pipeline #13893 failed with stage
in 146 minutes and 41 seconds
......@@ -46,12 +46,11 @@ MACRO(ADD_OPTIONAL_COMPILE_DEPENDENCY PKG_CONFIG_STRING)
ENDMACRO()
MACRO(ADD_PINOCCHIO_PARALLEL_UNIT_TEST NAME)
IF(NOT BUILD_WITH_OPENMP_SUPPORT)
RETURN()
IF(BUILD_WITH_OPENMP_SUPPORT)
ADD_PINOCCHIO_UNIT_TEST(${ARGV})
SET(TEST_NAME "test-cpp-${NAME}")
TARGET_LINK_LIBRARIES(${TEST_NAME} PRIVATE OpenMP::OpenMP)
ENDIF()
ADD_PINOCCHIO_UNIT_TEST(${ARGV})
SET(TEST_NAME "test-cpp-${NAME}")
TARGET_LINK_LIBRARIES(${TEST_NAME} PRIVATE OpenMP::OpenMP)
ENDMACRO()
# Find Boost.UnitTestFramework
......
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