From 5537f9da786e00f9842f3dbe580e85cbeb8d2f8b Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Tue, 1 Mar 2016 10:56:22 +1100 Subject: [PATCH] Install pkgconfig file everywhere but Windows --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ae459d8..5fb946eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,8 +340,7 @@ endif() configure_file(${CMAKE_MODULE_PATH}/config.h.in ${PROJECT_BINARY_DIR}/config.h) configure_file(src/hs_version.h.in ${PROJECT_BINARY_DIR}/hs_version.h) -if (PKG_CONFIG_FOUND) - # we really only need to do this if we have pkg-config +if (NOT WIN32) configure_file(libhs.pc.in libhs.pc @ONLY) # only replace @ quoted vars install(FILES ${CMAKE_BINARY_DIR}/libhs.pc DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")