diff options
| author | Ahmad Fatoum <ahmad@a3f.at> | 2018-02-11 20:00:04 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <ahmad@a3f.at> | 2018-02-11 20:10:50 +0100 |
| commit | 1be72a2e72bcae18241d4a6dd6427aeaaf54e4d5 (patch) | |
| tree | 7537f55256f24af7e604cdd05bf4d67d8a3b8cdc /src | |
| parent | 09b022305f3fd365d5d0424ff51982bcca5a572f (diff) | |
| download | raylib-1be72a2e72bcae18241d4a6dd6427aeaaf54e4d5.tar.gz raylib-1be72a2e72bcae18241d4a6dd6427aeaaf54e4d5.zip | |
pkg-config: Empty Requires.private on shared-only build
If user doesn't build the static library,
`pkg-config --static --libs raylib` should be equivalent to
`pkg-config --libs raylib`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e9784ff4..40871455 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -137,6 +137,8 @@ if(${PLATFORM} MATCHES "PLATFORM_DESKTOP") PUBLIC ${GRAPHICS} ) + set(PKG_CONFIG_LIBS_PRIVATE ${__PKG_CONFIG_LIBS_PRIVATE}) + if (WITH_PIC) set_property(TARGET ${RAYLIB} PROPERTY POSITION_INDEPENDENT_CODE ON) endif() @@ -149,7 +151,7 @@ if(${PLATFORM} MATCHES "PLATFORM_DESKTOP") configure_file(../raylib.pc.in raylib.pc @ONLY) install(FILES ${CMAKE_BINARY_DIR}/release/raylib.pc DESTINATION lib/pkgconfig) - + # Copy the header files to the build directory file(COPY "raylib.h" DESTINATION ".") file(COPY "rlgl.h" DESTINATION ".") |
