mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 03:14:56 +00:00
Fix CMake logic
This commit is contained in:
parent
25b1861405
commit
274fdfd6b7
@ -754,13 +754,15 @@ if(UNIX AND EXISTS "/usr/lib64")
|
|||||||
endif()
|
endif()
|
||||||
if(NOT BOOST_ROOT)
|
if(NOT BOOST_ROOT)
|
||||||
# Workaround for Macports
|
# Workaround for Macports
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND (${DETECT_MACPORTS} EQUAL 0))
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
if(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.81")
|
if(${DETECT_MACPORTS} EQUAL 0)
|
||||||
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.81")
|
if(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.81")
|
||||||
elseif(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.76")
|
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.81")
|
||||||
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.76")
|
elseif(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.76")
|
||||||
elseif(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.71")
|
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.76")
|
||||||
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.71")
|
elseif(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.71")
|
||||||
|
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.71")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user