blob: c6ad1311eab6dc668e7b6c824e35fac97201fddc (
plain)
1
2
3
4
5
6
7
8
9
10
|
configure_file(NoSourcePermissions.sh NoSourcePermissions.sh.out
NO_SOURCE_PERMISSIONS)
if (UNIX)
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()
|