Commit 70eb06d3 authored by David Reid's avatar David Reid

CMake: Minor fix for pthread and m.

parent 959283f2
...@@ -483,12 +483,12 @@ if (UNIX) ...@@ -483,12 +483,12 @@ if (UNIX)
find_library(LIB_PTHREAD NAMES pthread) find_library(LIB_PTHREAD NAMES pthread)
if(LIB_PTHREAD) if(LIB_PTHREAD)
list(APPEND COMMON_LINK_LIBRARIES pthread) # Some compilers will not link to pthread by default so list it here just in case. list(APPEND COMMON_LINK_LIBRARIES ${LIB_PTHREAD}) # Some compilers will not link to pthread by default so list it here just in case.
endif() endif()
find_library(LIB_M NAMES m) find_library(LIB_M NAMES m)
if(LIB_M) if(LIB_M)
list(APPEND COMMON_LINK_LIBRARIES m) list(APPEND COMMON_LINK_LIBRARIES ${LIB_M})
endif() endif()
# If we're compiling for 32-bit ARM we need to link to -latomic. # If we're compiling for 32-bit ARM we need to link to -latomic.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment