[cmake] export automatically raylib definitions and compile/link options (#5179)

This commit is contained in:
Bruno Cabral 2025-09-12 04:07:46 -07:00 • committed by GitHub
commit 7db5f56e81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 83 deletions

View file

@ -91,7 +91,7 @@ if (BUILD_SHARED_LIBS)
set_property(TARGET raylib PROPERTY C_VISIBILITY_PRESET hidden)
endif ()
target_link_libraries(raylib "${LIBS_PRIVATE}")
target_link_libraries(raylib PRIVATE $<BUILD_INTERFACE:${LIBS_PRIVATE}>)
# Sets some compile time definitions for the pre-processor
# If CUSTOMIZE_BUILD option is on you will not use config.h by default