Skip to content

Commit fcb31c3

Browse files
committed
Only set CMP0148 if known
1 parent 85d6769 commit fcb31c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rosidl_adapter_proto/cmake/rosidl_adapt_proto_interfaces.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
#
1717
# ================================= Apache 2.0 =================================
1818

19-
cmake_policy(SET CMP0148 OLD)
19+
if(POLICY CMP0148)
20+
cmake_policy(SET CMP0148 OLD)
21+
endif()
22+
2023
find_package(PythonInterp REQUIRED)
2124
if(NOT PYTHON_EXECUTABLE)
2225
message(FATAL_ERROR "Variable 'PYTHON_EXECUTABLE' must not be empty")

0 commit comments

Comments
 (0)