Modules: Fix CMP0159 warnings in modules when tracing

Closes: #25829
This commit is contained in:
Juan Ramos
2024-03-29 13:51:59 -07:00
parent 2e3692bde0
commit 3cd64287fe
70 changed files with 290 additions and 0 deletions

View File

@@ -101,6 +101,9 @@ This module defines the following output variables:
target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES})
#]=======================================================================]
cmake_policy(PUSH)
cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
#
# Naming convention:
# Local variables of the form _osg_foo
@@ -230,3 +233,5 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenSceneGraph
unset(_osg_component_founds)
set(OPENSCENEGRAPH_INCLUDE_DIRS ${OPENSCENEGRAPH_INCLUDE_DIR})
cmake_policy(POP)