CMake: create the same pkg-config file as the autotools build

This commit is contained in:
Rolf Eike Beer 2017-12-13 12:44:00 +01:00 committed by Sebastian Pipping
parent b7fbef9950
commit fa4bf716bd

View file

@ -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)