Skip to content

Commit

Permalink
Add interface target for config header
Browse files Browse the repository at this point in the history
for initial attempt to get a working build
  • Loading branch information
Dylan Harries committed Jan 27, 2018
1 parent cc67b06 commit 52895a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions config/CMakeLists.txt
@@ -1,3 +1,8 @@
string(TIMESTAMP DATE "%a %d %b %Y %H:%M:%SZ UTC" UTC)

configure_file(config_cmake.h.in config.h)

add_library(config INTERFACE)
target_include_directories(config INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")

add_library(FlexibleSUSY::config ALIAS config)
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Expand Up @@ -146,7 +146,6 @@ list(APPEND LIBFLEXI_HDR
add_library(flexisusy ${LIBFLEXI_SRC})

target_link_libraries(flexisusy Eigen3::Eigen)
target_include_directories(flexisusy PUBLIC
"${CMAKE_BINARY_DIR}/config")
target_link_libraries(flexisusy config)

add_library(FlexibleSUSY::flexisusy ALIAS flexisusy)

0 comments on commit 52895a4

Please sign in to comment.