chore: update CMake dependency configurations to remove PARENT_SCOPE
- Removed PARENT_SCOPE from various dependency target definitions in CMake files (grpc.cmake, imgui.cmake, sdl2.cmake, testing.cmake, yaml.cmake). - Ensured that all targets are set locally for better clarity and management. Benefits: - Simplifies the dependency management process and improves the readability of CMake configurations.
This commit is contained in:
@@ -96,9 +96,6 @@ elseif(UNIX)
|
||||
endif()
|
||||
|
||||
# Export SDL2 targets for use in other CMake files
|
||||
# Use PARENT_SCOPE to set in the calling scope (dependencies.cmake)
|
||||
set(YAZE_SDL2_TARGETS yaze_sdl2 PARENT_SCOPE)
|
||||
# Also set locally for use in this file
|
||||
set(YAZE_SDL2_TARGETS yaze_sdl2)
|
||||
|
||||
message(STATUS "SDL2 setup complete - YAZE_SDL2_TARGETS = ${YAZE_SDL2_TARGETS}")
|
||||
|
||||
Reference in New Issue
Block a user