You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
358 B
11 lines
358 B
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()
|