summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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()