Skip to content
Snippets Groups Projects
Commit 0154ec05 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Allow enabling dune_symlink_to_source_tree from the opts file

Patching the dune core modules just to have the advantages of
symlinks to the source tree is a bad idea. The patch introduces
a check for the variable DUNE_SYMLINK_TO_SOURCE_TREE instead, which
enables the macro if set.
parent 3824de87
No related branches found
No related tags found
No related merge requests found
...@@ -670,6 +670,10 @@ macro(dune_project) ...@@ -670,6 +670,10 @@ macro(dune_project)
exec_program(chmod ARGS "+x ${CMAKE_BINARY_DIR}/compiler.sh") exec_program(chmod ARGS "+x ${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()
if(DUNE_SYMLINK_TO_SOURCE_TREE)
dune_symlink_to_source_tree()
endif()
endmacro(dune_project) endmacro(dune_project)
# create a new config.h file and overwrite the existing one # create a new config.h file and overwrite the existing one
......
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