mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
Merge branch 'elcapitan' into next. Now GNSS-SDR can be built on Mac OS X 10.11 El Capitan
This commit is contained in:
commit
a6608c47a2
@ -194,6 +194,12 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||||||
set(OS_IS_MACOSX TRUE)
|
set(OS_IS_MACOSX TRUE)
|
||||||
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
|
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
|
||||||
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION})
|
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION})
|
||||||
|
if(${DARWIN_VERSION} MATCHES "15")
|
||||||
|
set(MACOSX_EL_CAPITAN TRUE)
|
||||||
|
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
||||||
|
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
||||||
|
message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on Mac OS X 10.11 El Capitan")
|
||||||
|
endif(${DARWIN_VERSION} MATCHES "15")
|
||||||
if(${DARWIN_VERSION} MATCHES "14")
|
if(${DARWIN_VERSION} MATCHES "14")
|
||||||
set(MACOSX_YOSEMITE TRUE)
|
set(MACOSX_YOSEMITE TRUE)
|
||||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
|
||||||
|
@ -25,9 +25,10 @@ set (SUPL_SOURCES
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/src/core/libs/supl
|
${CMAKE_SOURCE_DIR}/src/core/libs/supl
|
||||||
${CMAKE_SOURCE_DIR}/src/core/libs/supl/asn-rrlp
|
${CMAKE_SOURCE_DIR}/src/core/libs/supl/asn-rrlp
|
||||||
${CMAKE_SOURCE_DIR}/src/core/libs/supl/asn-supl
|
${CMAKE_SOURCE_DIR}/src/core/libs/supl/asn-supl
|
||||||
|
${OPENSSL_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
@ -39,4 +40,4 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MY_C_FLAGS}")
|
|||||||
|
|
||||||
add_library (supl_library STATIC ${ASN_RRLP_SOURCES} ${ASN_SUPL_SOURCES} ${SUPL_SOURCES})
|
add_library (supl_library STATIC ${ASN_RRLP_SOURCES} ${ASN_SUPL_SOURCES} ${SUPL_SOURCES})
|
||||||
target_link_libraries (supl_library ssl gnss_system_parameters)
|
target_link_libraries (supl_library ssl gnss_system_parameters)
|
||||||
set_target_properties(supl_library PROPERTIES LINKER_LANGUAGE C)
|
set_target_properties(supl_library PROPERTIES LINKER_LANGUAGE C)
|
||||||
|
Loading…
Reference in New Issue
Block a user