From f58726a25879e794b7fe6b5911878884f1d47916 Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Wed, 18 Mar 2026 16:21:54 -0700 Subject: [PATCH] include GNUInstallDirs before INSTALL_INTERFACE: --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bd1c7e..491d38f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,8 @@ endif() set(EXPORT_NAMESPACE "${PROJECT_NAME}::") +include(GNUInstallDirs) + # SimpleIni is a header-only library. The ConvertUTF.c/h files in this repository # are only required if users define SI_CONVERT_GENERIC. In that case, users must # manually copy and compile ConvertUTF.c into their own projects. @@ -26,8 +28,6 @@ target_include_directories(${PROJECT_NAME} INTERFACE $ ) -include(GNUInstallDirs) - include(CMakePackageConfigHelpers) write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake VERSION ${PROJECT_VERSION}