From 16ae40d383ff3fe4d172e7a4e9f6db33407a6120 Mon Sep 17 00:00:00 2001 From: kimci86 Date: Fri, 23 Feb 2024 22:44:23 +0100 Subject: [PATCH] Include GNUInstallDirs to define CMAKE_INSTALL_LIBDIR The variable CMAKE_INSTALL_LIBDIR is used to define CSFML_PKGCONFIG_DIR variable in cmake/Config.cmake file. Copy-pasted from SFML's CMakeLists.txt file. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8190de4..fdc21d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,11 @@ csfml_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debu # project name project(CSFML VERSION 2.6.0) +# we use the paths from the cmake GNUInstallDirs module as defaults +# you can override these if you like +# https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html +include(GNUInstallDirs) + # include the configuration file include(${PROJECT_SOURCE_DIR}/cmake/Config.cmake)