diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-02 15:17:32 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-02 15:17:32 (GMT) |
commit | dac7814841a09d80b75eba37ac50aa9ae17ced19 (patch) | |
tree | 09537d5373d876a15e4cb08db9406f58dcdf4792 /Modules/Platform/WindowsPaths.cmake | |
parent | cd6abe486d271940719c673dd5e75f911f428dbd (diff) | |
download | CMake-dac7814841a09d80b75eba37ac50aa9ae17ced19.zip CMake-dac7814841a09d80b75eba37ac50aa9ae17ced19.tar.gz CMake-dac7814841a09d80b75eba37ac50aa9ae17ced19.tar.bz2 |
ENH: use WindowsPaths.cmake on all Windows platforms, not only for cl, makes
the mingw cross compiler work out of the box and should help mingw users on
windows with a common install dir
Alex
Diffstat (limited to 'Modules/Platform/WindowsPaths.cmake')
-rw-r--r-- | Modules/Platform/WindowsPaths.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Modules/Platform/WindowsPaths.cmake b/Modules/Platform/WindowsPaths.cmake index fda99a2..11fc630 100644 --- a/Modules/Platform/WindowsPaths.cmake +++ b/Modules/Platform/WindowsPaths.cmake @@ -1,11 +1,17 @@ GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${CMAKE_ROOT}" PATH) GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH) +# the /bin, /lib and /include dirs are mainly for mingw cross compiler users +# under Linux who use CMAKE_FIND_ROOT_PATH SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH} - "$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/include" "${_CMAKE_INSTALL_DIR}/include") + "$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/include" "${_CMAKE_INSTALL_DIR}/include" /include) +# mingw can also link against dlls which can also be in /bin, so list this too SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} - "$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/lib" "${CMAKE_INSTALL_PREFIX}/bin" "${_CMAKE_INSTALL_DIR}/lib" "${_CMAKE_INSTALL_DIR}/bin") + "$ENV{ProgramFiles}" + "${CMAKE_INSTALL_PREFIX}/lib" "${CMAKE_INSTALL_PREFIX}/bin" + "${_CMAKE_INSTALL_DIR}/lib" "${_CMAKE_INSTALL_DIR}/bin" + /lib /bin ) SET(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH} - "$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/bin" "${_CMAKE_INSTALL_DIR}/bin") + "$ENV{ProgramFiles}" "${CMAKE_INSTALL_PREFIX}/bin" "${_CMAKE_INSTALL_DIR}/bin" /bin) |