Revert "[build][cmake] Improve cmake config file generation (#4541)"

This reverts commit c53dd8a931.
This commit is contained in:
Ray
2024-11-28 22:44:42 +01:00
parent c53dd8a931
commit abb3c8e9f7
7 changed files with 110 additions and 43 deletions

View File

@ -90,16 +90,7 @@ if (BUILD_SHARED_LIBS)
set_property(TARGET raylib PROPERTY C_VISIBILITY_PRESET hidden)
endif ()
# If building as a static lib *AND* using internal GLFW we
# need to set it up as a PRIVATE import so cmake doesn't complain
# it isn't declared on an install rule
if (INTERNAL_GLFW AND BUILD_SHARED_LIBS)
target_link_libraries(raylib PRIVATE glfw)
endif()
target_link_libraries(raylib PUBLIC "${LIBS_PRIVATE}")
target_link_libraries(raylib "${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