1
0
Fork 0

Add pthread library in CMakeList. This is required for C++11 threads.

This commit is contained in:
Joris van Rantwijk 2015-06-02 20:45:37 +02:00
parent c4c6c79765
commit fc30717198
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
cmake_minimum_required(VERSION 2.4) cmake_minimum_required(VERSION 2.4)
project(SoftFM) project(SoftFM)
find_package(Threads)
find_package(PkgConfig) find_package(PkgConfig)
find_package(ALSA REQUIRED) find_package(ALSA REQUIRED)
@ -49,6 +50,7 @@ include_directories(
${EXTRA_INCLUDES} ) ${EXTRA_INCLUDES} )
target_link_libraries(softfm target_link_libraries(softfm
${CMAKE_THREAD_LIBS_INIT}
${RTLSDR_LIBRARIES} ${RTLSDR_LIBRARIES}
${ALSA_LIBRARIES} ${ALSA_LIBRARIES}
${EXTRA_LIBS} ) ${EXTRA_LIBS} )