Skip to content
Snippets Groups Projects
Commit a1bd9774 authored by Robert K's avatar Robert K
Browse files

[Cmake][cleanup] OverloadCompilerFlags: exec_program --> execute_process.

parent 81a9a2f5
Branches
Tags
No related merge requests found
......@@ -68,7 +68,7 @@ macro(initialize_compiler_script)
set( DEFAULT_CXX_COMPILER ${CMAKE_CXX_COMPILER} )
set( COMPILER_SCRIPT_FILE "#!${BASH}\nexec ${CMAKE_CXX_COMPILER} \"\$@\"")
file(WRITE ${CMAKE_BINARY_DIR}/compiler.sh "${COMPILER_SCRIPT_FILE}")
exec_program(${CHMOD_PROGRAM} ARGS "+x ${CMAKE_BINARY_DIR}/compiler.sh")
execute_process(COMMAND ${CHMOD_PROGRAM} 755 ${CMAKE_BINARY_DIR}/compiler.sh)
set(CMAKE_CXX_COMPILER ${CMAKE_BINARY_DIR}/compiler.sh)
endif()
endmacro()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment