check-part4.cmake 445 B

123456789101112131415
  1. include(${CMAKE_CURRENT_LIST_DIR}/check-common.cmake)
  2. string(REPLACE ${path_prefix} "" test_shell_path ${test_shell_path})
  3. if(WIN32)
  4. if(CMAKE_GENERATOR STREQUAL "MSYS Makefiles")
  5. check(test_shell_path [[/c/shell/path]])
  6. elseif(CMAKE_GENERATOR STREQUAL "Unix Makefiles")
  7. check(test_shell_path [[c:/shell/path]])
  8. else()
  9. check(test_shell_path [[c:\shell\path]])
  10. endif()
  11. else()
  12. check(test_shell_path [[/shell/path]])
  13. endif()