mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
deal with FIXME in top-level CMakeLists.txt file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
2ee2402113
commit
0fca5dca97
1 changed files with 5 additions and 10 deletions
|
@ -497,19 +497,14 @@ if(ENABLE_TESTING)
|
|||
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/cmake/runtest.sh.cmake
|
||||
${CMAKE_BINARY_DIR}/runtest.sh
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/runtest.sh
|
||||
@ONLY
|
||||
)
|
||||
# FIXME: replace with something native (to CMake)
|
||||
execute_process(
|
||||
COMMAND chmod +x ${CMAKE_BINARY_DIR}/runtest.sh
|
||||
RESULT_VARIABLE chmod_result
|
||||
ERROR_VARIABLE chmod_output
|
||||
OUTPUT_VARIABLE chmod_output
|
||||
file(
|
||||
COPY ${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/runtest.sh
|
||||
DESTINATION ${CMAKE_BINARY_DIR}
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
if(NOT chmod_result STREQUAL "0")
|
||||
message(FATAL_ERROR "${chmod_output} (${chmod_result})")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# optional packages
|
||||
|
|
Loading…
Add table
Reference in a new issue