CMake: Add Libs.private to Libs if installing static only

pkg-config --libs --static raylib and pkg-config --libs raylib
should give the same result if there is no shared raylib installed.
This commit is contained in:
Ahmad Fatoum 2018-07-10 21:06:16 +02:00
parent 758a774173
commit 414bb6018b
No known key found for this signature in database
GPG key ID: C3EAC3DE9321D59B
2 changed files with 11 additions and 7 deletions

View file

@ -7,7 +7,7 @@ Name: raylib
Description: Simple and easy-to-use library to learn videogames programming
URL: http://github.com/raysan5/raylib
Version: @PROJECT_VERSION@
Libs: -L${libdir} -lraylib
Libs: -L${libdir} -lraylib @PKG_CONFIG_LIBS_EXTRA@
Libs.private: @PKG_CONFIG_LIBS_PRIVATE@
Requires.private: @GLFW_PKG_DEPS@
Cflags: -I${includedir}