Skip to content

Commit

Permalink
fixed naming of backup _IMPORT_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Wirtz committed Jun 24, 2015
1 parent 10f0feb commit 4806256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,11 @@ WRITE_BASIC_PACKAGE_VERSION_FILE(${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-vers
COMPATIBILITY AnyNewerVersion)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-dependencies.cmake
"include(CMakeFindDependencyMacro)\r\n"
"set(_OLD_IMPORT_PREFIX \${_IMPORT_PREFIX})\r\n")
"set(${PROJECT_NAME}_IMPORT_PREFIX \${_IMPORT_PREFIX})\r\n")
if (WITH_ZLIB)
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-dependencies.cmake "find_dependency(ZLIB ${ZLIB_VERSION})\r\n")
endif()
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-dependencies.cmake "set(_IMPORT_PREFIX \${_OLD_IMPORT_PREFIX})")
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-dependencies.cmake "set(_IMPORT_PREFIX \${${PROJECT_NAME}_IMPORT_PREFIX})")
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-version.cmake
${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-dependencies.cmake
Expand Down

0 comments on commit 4806256

Please sign in to comment.