Skip to content
Snippets Groups Projects
Commit 84c39d1e authored by Markus Blatt's avatar Markus Blatt
Browse files

Fixed search path for module dependant config.h.cmake file.

[[Imported from SVN: r6880]]
parent 4b7b0133
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,10 @@
#
# dune_regenerate_config_cmake()
#
# Create a new config.h.cmake file in ${CMAKE_CURRENT_BINARY_DIR) that consists
# of entries from ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake and includes non-private
# entries from the files config.h.cmake files of all dependent modules.
# Creates a new config.h.cmake file in ${CMAKE_CURRENT_BINARY_DIR) that
# consists of entries from ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
# and includes non-private entries from the files config.h.cmake files
# of all dependent modules.
# Finally config.h is created from config.h.cmake.
#
#
......@@ -329,7 +330,7 @@ macro(dune_regenerate_config_cmake)
file(APPEND ${CONFIG_H_CMAKE_FILE} "\n${_tfile}")
foreach(_dep ${DEPENDENCY_TREE})
foreach(_mod_conf_file ${${_dep}_PREFIX}/config.h.cmake
${${_dep_macro}_PREFIX}/share/${_dep}/config.h.cmake)
${${_dep}_PREFIX}/share/${_dep}/config.h.cmake)
if(EXISTS ${_mod_conf_file})
file(READ "${_mod_conf_file}" _file)
string(REGEX REPLACE
......
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