CMake: create the same pkg-config file as the autotools build
@@ -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)
