Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unknown CMP0148 with a cmake minimum range #92

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mav_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.14.4)
cmake_minimum_required(VERSION 3.14.4...3.27)
project(mav_msgs)

cmake_policy(SET CMP0148 OLD)
Ryanf55 marked this conversation as resolved.
Show resolved Hide resolved
if(${CMAKE_VERSION} VERSION_GREATER 3.27)
cmake_policy(SET CMP0148 OLD)
endif()

find_package(ament_cmake REQUIRED)

Expand Down
6 changes: 4 additions & 2 deletions mav_planning_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.14.4)
cmake_minimum_required(VERSION 3.14.4...3.27)
project(mav_planning_msgs)

cmake_policy(SET CMP0148 OLD)
if(${CMAKE_VERSION} VERSION_GREATER 3.27)
cmake_policy(SET CMP0148 OLD)
endif()

find_package(ament_cmake REQUIRED)

Expand Down
6 changes: 4 additions & 2 deletions mav_state_machine_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.14.4)
cmake_minimum_required(VERSION 3.14.4...3.27)
project(mav_state_machine_msgs)

cmake_policy(SET CMP0148 OLD)
if(${CMAKE_VERSION} VERSION_GREATER 3.27)
cmake_policy(SET CMP0148 OLD)
endif()

find_package(ament_cmake REQUIRED)

Expand Down
6 changes: 4 additions & 2 deletions mav_system_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.14.4)
cmake_minimum_required(VERSION 3.14.4...3.27)
project(mav_system_msgs)

cmake_policy(SET CMP0148 OLD)
if(${CMAKE_VERSION} VERSION_GREATER 3.27)
cmake_policy(SET CMP0148 OLD)
endif()

find_package(std_msgs REQUIRED)

Expand Down