Skip to content
Snippets Groups Projects
Commit adb7d071 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Merge branch 'bugfix/private-config-header-with-wrong-module-info' into 'master'

Private config header file generated info with wrong module

See merge request !1384
parents e0a96c24 886d438d
Branches
Tags
1 merge request!1384Private config header file generated info with wrong module
Pipeline #71269 waiting for manual action
......@@ -536,12 +536,12 @@ endif()")
# configure private config file
file(WRITE ${PROJECT_BINARY_DIR}/include_private/${ProjectName}-config-private.hh.cmake "${${ProjectName}_CONFIG_PRIVATE_HH}")
# parse again dune.module file of current module to set PACKAGE_* variables
dune_module_information(${PROJECT_SOURCE_DIR} QUIET)
configure_file(${CMAKE_CURRENT_BINARY_DIR}/include_private/${ProjectName}-config-private.hh.cmake ${CMAKE_CURRENT_BINARY_DIR}/include_private/${ProjectName}-config-private.hh)
# configure and install public config file
file(WRITE ${PROJECT_BINARY_DIR}/include/${ProjectName}-config.hh.cmake "${${ProjectName}_CONFIG_HH}\n${${ProjectName}_CONFIG_BOTTOM_HH}")
# parse again dune.module file of current module to set PACKAGE_* variables
dune_module_information(${PROJECT_SOURCE_DIR} QUIET)
configure_file(${CMAKE_CURRENT_BINARY_DIR}/include/${ProjectName}-config.hh.cmake ${CMAKE_CURRENT_BINARY_DIR}/include/${ProjectName}-config.hh)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/${ProjectName}-config.hh DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment