mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-05 23:10:34 +00:00
Fix detection of pthread in some environments
This commit is contained in:
parent
ff4a3fb78c
commit
c9ba5e8441
@ -839,6 +839,10 @@ if(NOT GNUTLS_OPENSSL_LIBRARY)
|
|||||||
endif(OPENSSL_FOUND)
|
endif(OPENSSL_FOUND)
|
||||||
endif(NOT GNUTLS_OPENSSL_LIBRARY)
|
endif(NOT GNUTLS_OPENSSL_LIBRARY)
|
||||||
|
|
||||||
|
if(OS_IS_LINUX)
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
link_libraries(${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
endif(OS_IS_LINUX)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# USRP Hardware Driver (UHD) - OPTIONAL
|
# USRP Hardware Driver (UHD) - OPTIONAL
|
||||||
@ -1122,15 +1126,8 @@ if(ENABLE_GPROF)
|
|||||||
#endif(CMAKE_COMPILER_IS_GNUCXX)
|
#endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
endif(ENABLE_GPROF)
|
endif(ENABLE_GPROF)
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MY_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MY_CXX_FLAGS}")
|
||||||
|
|
||||||
if(OS_IS_LINUX)
|
|
||||||
if(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "openSUSE" OR ${LINUX_DISTRIBUTION} MATCHES "ArchLinux")
|
|
||||||
link_libraries(pthread)
|
|
||||||
endif(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "openSUSE" OR ${LINUX_DISTRIBUTION} MATCHES "ArchLinux")
|
|
||||||
endif(OS_IS_LINUX)
|
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Create uninstall target
|
# Create uninstall target
|
||||||
|
Loading…
Reference in New Issue
Block a user