File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
23
23
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -Werror -Wall -Wextra -Weffc++ -Wswitch-default" )
24
24
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
25
25
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough -Weverything" )
26
- set (CMAKE_LINK_FLAGS "${CMAKE_LINK_FLAGS} -lpthread" )
27
26
elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
28
27
add_definitions (-D_CRT_SECURE_NO_WARNINGS=1 )
29
28
endif ()
@@ -32,4 +31,8 @@ foreach (example ${EXAMPLES})
32
31
add_executable (${example} ${example} /${example}.cpp )
33
32
endforeach ()
34
33
34
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
35
+ target_link_libraries (parsebyparts pthread )
36
+ endif ()
37
+
35
38
add_custom_target (examples ALL DEPENDS ${EXAMPLES} )
You can’t perform that action at this time.
0 commit comments