2007-07-17 16:51:45 +04:00
|
|
|
GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${CMAKE_ROOT}" PATH)
|
|
|
|
GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
|
|
|
|
|
2007-08-02 19:17:32 +04:00
|
|
|
# the /bin, /lib and /include dirs are mainly for mingw cross compiler users
|
|
|
|
# under Linux who use CMAKE_FIND_ROOT_PATH
|
2007-07-17 16:51:45 +04:00
|
|
|
SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH}
|
2007-08-02 19:17:32 +04:00
|
|
|
"$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/include" "${_CMAKE_INSTALL_DIR}/include" /include)
|
2007-07-17 16:51:45 +04:00
|
|
|
|
2007-08-02 19:17:32 +04:00
|
|
|
# mingw can also link against dlls which can also be in /bin, so list this too
|
2007-07-17 16:51:45 +04:00
|
|
|
SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH}
|
2007-08-02 19:17:32 +04:00
|
|
|
"$ENV{ProgramFiles}"
|
|
|
|
"${CMAKE_INSTALL_PREFIX}/lib" "${CMAKE_INSTALL_PREFIX}/bin"
|
|
|
|
"${_CMAKE_INSTALL_DIR}/lib" "${_CMAKE_INSTALL_DIR}/bin"
|
|
|
|
/lib /bin )
|
2007-07-17 16:51:45 +04:00
|
|
|
|
|
|
|
SET(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH}
|
2007-08-02 19:17:32 +04:00
|
|
|
"$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/bin" "${_CMAKE_INSTALL_DIR}/bin" /bin)
|