Skip to content

Commit 16ae40d

Browse files
kimci86eXpl0it3r
authored andcommitted
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.
1 parent ad9edb0 commit 16ae40d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ csfml_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debu
1515
# project name
1616
project(CSFML VERSION 2.6.0)
1717

18+
# we use the paths from the cmake GNUInstallDirs module as defaults
19+
# you can override these if you like
20+
# https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
21+
include(GNUInstallDirs)
22+
1823
# include the configuration file
1924
include(${PROJECT_SOURCE_DIR}/cmake/Config.cmake)
2025

0 commit comments

Comments
 (0)