Skip to content

Commit

Permalink
Properly add static linking this time
Browse files Browse the repository at this point in the history
  • Loading branch information
lw committed Apr 23, 2020
1 parent 0ca5f5e commit a52bfa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ if (UNIX)
target_link_libraries(maniac ${XTEST_LIBRARIES})
endif()

target_link_libraries(maniac PUBLIC
-static -lwinpthread
)

target_include_directories(maniac
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
Expand All @@ -50,7 +54,6 @@ target_compile_options(maniac PRIVATE
-Wall -Wextra -Wpedantic -Wno-unused-parameter
-Wno-frame-address
-static
-l:libwinpthread
)

if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
Expand Down

0 comments on commit a52bfa5

Please sign in to comment.