Adds libc++ (an implementation of the C++ standard library) when compiling on Mac OS X.

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@426 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2013-10-20 22:12:43 +00:00
parent 256bff8d18
commit e0947ff900
2 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,13 @@ if( RTLSDR_DRIVER )
add_definitions(-DRTLSDR_DRIVER=1)
endif( RTLSDR_DRIVER )
#Enable OpenCL if found in the system
if ( OPENCL_FOUND )
message( "Adding processing blocks implemented using Open CL" )
add_definitions(-DOPENCL=1)
endif( OPENCL_FOUND )
add_library(gnss_rx ${GNSS_RECEIVER_SOURCES})
target_link_libraries(gnss_rx ${Boost_LIBRARIES} ${ARMADILLO_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_BLOCKS_LIBRARIES} ${GNURADIO_FFT_LIBRARIES} ${GNURADIO_FILTER_LIBRARIES}
gnss_system_parameters gnss_sp_libs

View File

@ -36,6 +36,7 @@ add_definitions( -DGNSS_SDR_VERSION="${VERSION}" )
if(OS_IS_MACOSX)
# Tell the linker where the libraries installed by MacPorts are
link_directories( /opt/local/lib ) # Not very elegant, to be fixed
set(MAC_LIBRARIES "-lstdc++")
endif(OS_IS_MACOSX)
add_executable(gnss-sdr ${CMAKE_CURRENT_SOURCE_DIR}/main.cc)