From fa4bf716bd98f843ea886c280fbe3c0b4ae7174a Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 13 Dec 2017 12:44:00 +0100 Subject: [PATCH] CMake: create the same pkg-config file as the autotools build --- expat/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 43a2e12d..d4a943a7 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -142,10 +142,10 @@ expat_install(TARGETS expat RUNTIME DESTINATION bin ARCHIVE DESTINATION lib) set(prefix ${CMAKE_INSTALL_PREFIX}) -set(exec_prefix "\${prefix}/bin") -set(libdir "\${prefix}/lib") +set(exec_prefix "\${prefix}") +set(libdir "\${exec_prefix}/lib") set(includedir "\${prefix}/include") -configure_file(expat.pc.in ${CMAKE_CURRENT_BINARY_DIR}/expat.pc) +configure_file(expat.pc.in ${CMAKE_CURRENT_BINARY_DIR}/expat.pc @ONLY) expat_install(FILES lib/expat.h lib/expat_external.h DESTINATION include) expat_install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib/pkgconfig)