mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
ddcd1469e8
Detect MSYS as CYGWIN, with the required adaptations.
11 lines
358 B
CMake
11 lines
358 B
CMake
configure_file(NoSourcePermissions.sh NoSourcePermissions.sh.out
|
|
NO_SOURCE_PERMISSIONS)
|
|
|
|
if (UNIX AND NOT MSYS)
|
|
execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/NoSourcePermissions.sh.out
|
|
RESULT_VARIABLE result)
|
|
if (result EQUAL "0")
|
|
message(FATAL_ERROR "Copied file has executable permissions")
|
|
endif()
|
|
endif()
|