1 GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${CMAKE_ROOT}" PATH)
2 GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
4 # List common installation prefixes. These will be used for all
6 LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
10 # CMake install location
11 "${_CMAKE_INSTALL_DIR}"
13 # Project install destination.
14 "${CMAKE_INSTALL_PREFIX}"
16 # MinGW (useful when cross compiling from linux with CMAKE_FIND_ROOT_PATH set)
20 LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH
23 # mingw can also link against dlls which can also be in /bin, so list this too
24 LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH
25 "${CMAKE_INSTALL_PREFIX}/bin"
26 "${_CMAKE_INSTALL_DIR}/bin"
30 LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH