Skip to content

Commit c26faa2

Browse files
Merge pull request #2626 from bartoszek/patch-1
POP policy-stack before return()
2 parents b8b1f55 + 9a805f0 commit c26faa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PCLConfig.cmake.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ macro(pcl_report_not_found _reason)
3636
elseif(NOT PCL_FIND_QUIETLY)
3737
message(WARNING ${_reason})
3838
endif()
39+
if(POLICY CMP0074)
40+
cmake_policy(POP)
41+
endif()
3942
return()
4043
endmacro(pcl_report_not_found)
4144

@@ -472,6 +475,9 @@ set(PCL_TO_FIND_COMPONENTS ${_PCL_TO_FIND_COMPONENTS})
472475
unset(_PCL_TO_FIND_COMPONENTS)
473476

474477
if(NOT PCL_TO_FIND_COMPONENTS)
478+
if(POLICY CMP0074)
479+
cmake_policy(POP)
480+
endif()
475481
return()
476482
endif()
477483

0 commit comments

Comments
 (0)