blob: 85533c40c4044787165c41fdf53c9fd7a9f93477 [file] [log] [blame]
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()