check-part4.cmake 540 B

12345678910111213141516171819202122
  1. include(${CMAKE_CURRENT_LIST_DIR}/check-common.cmake)
  2. if(msys1_prefix)
  3. string(REPLACE "${msys1_prefix}" "" test_shell_path ${test_shell_path})
  4. endif()
  5. if(WIN32)
  6. if(CMAKE_GENERATOR STREQUAL "MSYS Makefiles")
  7. check(test_shell_path [[/c/shell/path]])
  8. elseif(CMAKE_GENERATOR STREQUAL "Unix Makefiles")
  9. check(test_shell_path [[c:/shell/path]])
  10. else()
  11. check(test_shell_path [[c:\shell\path]])
  12. endif()
  13. else()
  14. check(test_shell_path [[/shell/path]])
  15. endif()
  16. check(if_1 "a")
  17. check(if_2 "b")
  18. check(if_3 "b")
  19. check(if_4 "a")