Skip to content

Commit

Permalink
[test/seq] Correctly detect STATIC option....
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Mar 15, 2024
1 parent 6dd34a3 commit 383e7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/seq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ function(add_seq_test target)
set(SOURCES "test_${target}.cpp")
endif()
add_executable(test-${target} ${SOURCES})
if(UTILS_TEST_STATIC AND BUILD_STATIC_LIB)
if(SEQ_TEST_STATIC AND BUILD_STATIC_LIB)
target_link_libraries(test-${target}
nacs-seq-static nacs-utils-static Catch2::Catch2)
nacs-seq-static Catch2::Catch2)
set_property(TARGET test-${target} APPEND_STRING
PROPERTY COMPILE_FLAGS " -DNACS_STATIC_ONLY=1")
else()
Expand Down

0 comments on commit 383e7b7

Please sign in to comment.