diff options
author | Juan Ramos <juan.ramos@kitware.com> | 2024-03-29 20:51:59 (GMT) |
---|---|---|
committer | Juan Ramos <juan.ramos@kitware.com> | 2024-03-29 20:51:59 (GMT) |
commit | 3cd64287fefd536561c155a0fbb1f549ab066d0e (patch) | |
tree | f8ad4a5d09c90dae7be0dec761f298fb330bfac8 /Modules/FindOpenSceneGraph.cmake | |
parent | 2e3692bde08c071fdb00f201eaa6dc0116de436b (diff) | |
download | CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.zip CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.tar.gz CMake-3cd64287fefd536561c155a0fbb1f549ab066d0e.tar.bz2 |
Modules: Fix CMP0159 warnings in modules when tracing
Closes: #25829
Diffstat (limited to 'Modules/FindOpenSceneGraph.cmake')
-rw-r--r-- | Modules/FindOpenSceneGraph.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindOpenSceneGraph.cmake b/Modules/FindOpenSceneGraph.cmake index 27909bc..9df2a62 100644 --- a/Modules/FindOpenSceneGraph.cmake +++ b/Modules/FindOpenSceneGraph.cmake @@ -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) |