From 35b7564c1cd0e288438e157566763cc1966e098d Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sat, 14 Mar 2020 09:53:15 +0100 Subject: [PATCH] Move pkgconfig installation with its configuration --- src/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f840899d..38e2d67f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,6 +48,8 @@ if (NOT MSVC) PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) configure_file (${PROJECT_SOURCE_DIR}/scripts/sfizz.pc.in sfizz.pc @ONLY) + install (FILES ${CMAKE_BINARY_DIR}/src/sfizz.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) endif() if(WIN32) include(VSTConfig) @@ -90,8 +92,3 @@ if (SFIZZ_SHARED) endif() endif() endif() - -if (NOT MSVC) - install (FILES ${CMAKE_BINARY_DIR}/src/sfizz.pc - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) -endif()