summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-03 17:48:43 +0100
committerTyge Løvset <[email protected]>2023-02-03 17:48:43 +0100
commit5f4076de684da4507943a86e26dcaa5479cdf69b (patch)
treed7d4673f295e743d80ccf40e45c5b6aa47976a76 /CMakeLists.txt
parentfeef5067e0c3f1cf113b4fa8b302ac1bfa249e68 (diff)
downloadSTC-modified-5f4076de684da4507943a86e26dcaa5479cdf69b.tar.gz
STC-modified-5f4076de684da4507943a86e26dcaa5479cdf69b.zip
Temporary commit. Will cleanup cspan and usage.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f54a7f2..9369a070 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,10 +16,10 @@ if(BUILD_TESTING)
foreach(file IN LISTS misc/examples)
get_filename_component(name "${file}" NAME_WE)
add_executable(${name} ${file})
- target_compile_options(${name} PRIVATE "-pthread")
- if(CMAKE_THREAD_LIBS_INIT)
- target_link_libraries(${name} PRIVATE "${CMAKE_THREAD_LIBS_INIT}")
- endif()
+ target_compile_options(${name} PRIVATE "-pthread")
+ if(CMAKE_THREAD_LIBS_INIT)
+ target_link_libraries(${name} PRIVATE "${CMAKE_THREAD_LIBS_INIT}")
+ endif()
target_link_libraries(${name} PRIVATE stc m)
add_test(NAME ${name} COMMAND ${name})
endforeach()