From 53d265576ae0cea480f22f3b08f1c05c8af40d4d Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 14 Oct 2017 22:42:12 +0200 Subject: [PATCH] CMakeLists.txt: turn BUILD_PKGCONFIG_FILES ON by default on Windows if compiler is GCC --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff70a06f..cb545666 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -351,8 +351,8 @@ include (cmake/OpenJPEGCPack.cmake) #----------------------------------------------------------------------------- # pkgconfig support -# enabled by default on Unix, disabled by default on other platforms -if(UNIX) +# enabled by default on Unix or if using GCC, disabled by default on other platforms +if(UNIX OR CMAKE_COMPILER_IS_GNUCC) option(BUILD_PKGCONFIG_FILES "Build and install pkg-config files" ON) else() option(BUILD_PKGCONFIG_FILES "Build and install pkg-config files" OFF)