WindowsPaths.cmake 774 B

12345678910111213141516171819202122232425262728293031
  1. GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${CMAKE_ROOT}" PATH)
  2. GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
  3. # List common installation prefixes. These will be used for all
  4. # search types.
  5. LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
  6. # Standard
  7. "$ENV{ProgramFiles}"
  8. # CMake install location
  9. "${_CMAKE_INSTALL_DIR}"
  10. # Project install destination.
  11. "${CMAKE_INSTALL_PREFIX}"
  12. # MinGW (useful when cross compiling from linux with CMAKE_FIND_ROOT_PATH set)
  13. /
  14. )
  15. LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH
  16. )
  17. # mingw can also link against dlls which can also be in /bin, so list this too
  18. LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH
  19. "${CMAKE_INSTALL_PREFIX}/bin"
  20. "${_CMAKE_INSTALL_DIR}/bin"
  21. /bin
  22. )
  23. LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH
  24. )