Link to pthread last

This commit is contained in:
Dale Glass 2021-04-22 23:34:23 +02:00
parent bb9460f6d9
commit 1e3af6c32c

View file

@ -139,7 +139,7 @@ include_directories("${PROJECT_SOURCE_DIR}/src")
if (UNIX AND NOT ANDROID)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
# Linux
target_link_libraries(${TARGET_NAME} pthread atomic)
target_link_libraries(${TARGET_NAME} atomic pthread)
else ()
# OSX
target_link_libraries(${TARGET_NAME} pthread)