Skip to content

Commit

Permalink
Only link with winpthread on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lw committed Apr 25, 2020
1 parent 89229ce commit 42fd241
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ if (UNIX)
target_link_libraries(maniac ${XTEST_LIBRARIES})
endif()

target_link_libraries(maniac PUBLIC
-static -lwinpthread
)
if (WIN32)
target_link_libraries(maniac PUBLIC
-static -lwinpthread
)
endif()

target_include_directories(maniac
PRIVATE
Expand Down

0 comments on commit 42fd241

Please sign in to comment.