From 5f4076de684da4507943a86e26dcaa5479cdf69b Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 3 Feb 2023 17:48:43 +0100 Subject: Temporary commit. Will cleanup cspan and usage. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') 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() -- cgit v1.2.3