Reorder CMake search paths so that BUILDLINK_DIR and PREFIX come first,
before / and /usr. This should prevent CMake from picking up stuff from the base system instead of the buildlink directories.
This commit is contained in:
parent
feb4e7b6e9
commit
797cdacc45
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
|
|||
|
||||
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
|
||||
# Standard
|
||||
/ /usr $ENV{BUILDLINK_DIR} $ENV{PREFIX}
|
||||
$ENV{BUILDLINK_DIR} $ENV{PREFIX} / /usr
|
||||
)
|
||||
|
||||
SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH}
|
||||
|
@ -20,7 +20,7 @@ SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH}
|
|||
)
|
||||
|
||||
SET(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH}
|
||||
/bin /usr/bin $ENV{BUILDLINK_DIR}/bin /sbin
|
||||
$ENV{BUILDLINK_DIR}/bin /bin /usr/bin /sbin
|
||||
)
|
||||
|
||||
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
|
||||
|
|
Loading…
Reference in a new issue