check-part4.cmake 510 B

1234567891011121314151617181920
  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()
  14. check(if_1 "a")
  15. check(if_2 "b")
  16. check(if_3 "b")
  17. check(if_4 "a")