1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-30 19:04:51 +00:00

Fix CMake logic

This commit is contained in:
Carles Fernandez 2025-01-22 22:39:42 +01:00
parent 25b1861405
commit 274fdfd6b7
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -754,7 +754,8 @@ if(UNIX AND EXISTS "/usr/lib64")
endif()
if(NOT BOOST_ROOT)
# Workaround for Macports
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND (${DETECT_MACPORTS} EQUAL 0))
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(${DETECT_MACPORTS} EQUAL 0)
if(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.81")
set(BOOST_ROOT "${MACPORTS_PREFIX}/libexec/boost/1.81")
elseif(EXISTS "${MACPORTS_PREFIX}/libexec/boost/1.76")
@ -764,6 +765,7 @@ if(NOT BOOST_ROOT)
endif()
endif()
endif()
endif()
# Boost_ADDITIONAL_VERSIONS is only used internally by cmake to know the
# formation of newer versions. No need to increase, not used anymore since newer
# Boost provides its own CMake configuration files.