mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 20:15:15 +02:00
shared library should link pthreads on UNIX
This commit is contained in:
parent
92f5c88ab7
commit
9c60ac9918
1 changed files with 8 additions and 1 deletions
|
@ -7,4 +7,11 @@ file(GLOB HIFI_SHARED_SRCS src/*.h src/*.cpp)
|
|||
|
||||
# create a library and set the property so it can be referenced later
|
||||
add_library(HifiShared ${HIFI_SHARED_SRCS})
|
||||
set(HIFI_SHARED_LIBRARY HifiShared)
|
||||
set(HIFI_SHARED_LIBRARY HifiShared)
|
||||
|
||||
# link required libraries on UNIX
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
target_link_libraries(HifiShared ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif (UNIX AND NOT APPLE)
|
Loading…
Reference in a new issue