mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 13:53:36 +02:00
Use relative install path for pkgconfig files
It is recommended in CMake's official documentation to use relative path for DESTINATION parameter. Using absolute paths do not work with the cmake --install command's --prefix option.
This commit is contained in:
1 parent
0f4b9a4383
commit
ad9edb0256
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -34,10 +34,10 @@ endif()
|
||||
|
||||
# set pkgconfig install directory
|
||||
# this could be e.g. macports on mac or msys2 on windows etc.
|
||||
set(CSFML_PKGCONFIG_DIR "/${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||
set(CSFML_PKGCONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||
|
||||
if(SFML_OS_FREEBSD OR SFML_OS_OPENBSD OR SFML_OS_NETBSD)
|
||||
set(CSFML_PKGCONFIG_DIR "/libdata/pkgconfig")
|
||||
set(CSFML_PKGCONFIG_DIR "libdata/pkgconfig")
|
||||
endif()
|
||||
|
||||
# detect the compiler and its version
|
||||
|
||||
Reference in new issue
Block a user