mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-03-20 02:17:02 +00:00
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:
parent
256bff8d18
commit
e0947ff900
src
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user