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:
scawful
2025-11-01 11:32:16 -04:00
parent 7ce08b7e13
commit a9f0b8eb9c
6 changed files with 3 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ if(YAZE_USE_SYSTEM_DEPS)
message(STATUS "Using system yaml-cpp")
add_library(yaze_yaml INTERFACE IMPORTED)
target_link_libraries(yaze_yaml INTERFACE yaml-cpp)
set(YAZE_YAML_TARGETS yaze_yaml PARENT_SCOPE)
set(YAZE_YAML_TARGETS yaze_yaml)
return()
endif()
endif()