[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
parent 8d3a4b8dd5
commit 7db5f56e81
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