Skip to content
Snippets Groups Projects
Commit dedfa30f authored by Robert K's avatar Robert K Committed by Steffen Müthing
Browse files

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


(cherry picked from commit a1bd9774)
Signed-off-by: default avatarSteffen Müthing <muething@dune-project.org>
parent d2c7b559
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ macro(initialize_compiler_script) ...@@ -68,7 +68,7 @@ macro(initialize_compiler_script)
set( DEFAULT_CXX_COMPILER ${CMAKE_CXX_COMPILER} ) set( DEFAULT_CXX_COMPILER ${CMAKE_CXX_COMPILER} )
set( COMPILER_SCRIPT_FILE "#!${BASH}\nexec ${CMAKE_CXX_COMPILER} \"\$@\"") set( COMPILER_SCRIPT_FILE "#!${BASH}\nexec ${CMAKE_CXX_COMPILER} \"\$@\"")
file(WRITE ${CMAKE_BINARY_DIR}/compiler.sh "${COMPILER_SCRIPT_FILE}") 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) set(CMAKE_CXX_COMPILER ${CMAKE_BINARY_DIR}/compiler.sh)
endif() endif()
endmacro() endmacro()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment