Skip to content

Commit

Permalink
Merge 77b1b83 into 7279519
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Dec 8, 2017
2 parents 7279519 + 77b1b83 commit 48c7666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake
"include(CMakeFindDependencyMacro)\r\n"
"set(${PROJECT_NAME}_IMPORT_PREFIX \${_IMPORT_PREFIX})\r\n"
)
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake "if (${IRON_BUILD_STATIC_LIBRARY})")
foreach(IRON_DEP ${IRON_UPSTREAM_DEPS})
if (WITH_${IRON_DEP})
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake "find_dependency(${IRON_DEP})\r\n")
Expand All @@ -312,7 +313,9 @@ endif()
if (WITH_FIELDML)
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake "find_dependency(FIELDML-API)\r\n")
endif()
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake "endif ()")
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake "set(_IMPORT_PREFIX \${${PROJECT_NAME}_IMPORT_PREFIX})")

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/iron-config-dependencies.cmake
DESTINATION ${PACKAGE_CONFIG_DIR}
Expand Down

0 comments on commit 48c7666

Please sign in to comment.