]> granicus.if.org Git - libexpat/commitdiff
CMake: Use GNUInstallDirs for pkgconfig too
authoruserwithuid <userwithuid@gmail.com>
Tue, 21 Aug 2018 06:30:48 +0000 (06:30 +0000)
committeruserwithuid <userwithuid@gmail.com>
Tue, 21 Aug 2018 06:30:48 +0000 (06:30 +0000)
Fixes i.e. multilib setups on linux

Follow-up to 5681911965ef

expat/CMakeLists.txt

index a537f8a778563bf82bc6c386805dea515077dc1e..673184fad6efca8f0ce139e2740864bca37ceabe 100644 (file)
@@ -187,8 +187,8 @@ expat_install(TARGETS expat RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
 \r
 set(prefix ${CMAKE_INSTALL_PREFIX})\r
 set(exec_prefix "\${prefix}")\r
-set(libdir "\${exec_prefix}/lib")\r
-set(includedir "\${prefix}/include")\r
+set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")\r
+set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")\r
 configure_file(expat.pc.in ${CMAKE_CURRENT_BINARY_DIR}/expat.pc @ONLY)\r
 \r
 expat_install(FILES lib/expat.h lib/expat_external.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})\r