diff --git a/CMakeLists.txt b/CMakeLists.txt index ac9ee177..a22e5b51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,11 @@ configure_vars ( FILE CMAKE "${PROJECT_BINARY_DIR}/opm-core-config.cmake" APPEND "${opm-core_CONFIG_VARS}" ) +configure_file ( + ${PROJECT_SOURCE_DIR}/dune.module.in + ${PROJECT_BINARY_DIR}/dune.module + @ONLY + ) # pre-compile common headers; this is setup *after* the library to pick # up extra options set there @@ -261,7 +266,7 @@ install ( DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install ( - FILES dune.module + FILES ${PROJECT_BINARY_DIR}/dune.module DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/dunecontrol/opm-core ) message (STATUS "This build defaults to installing in ${CMAKE_INSTALL_PREFIX}") diff --git a/dune.module b/dune.module.in similarity index 52% rename from dune.module rename to dune.module.in index e55acd1e..bb3998c9 100644 --- a/dune.module +++ b/dune.module.in @@ -1,3 +1,3 @@ Module: opm-core -Version: 2013.02 +Version: @opm-core_VERSION_MAJOR@.@opm-core_VERSION_MINOR@ Depends: dune-common (>= 2.2) dune-istl (>= 2.2)