Skip to content

Commit af59b86

Browse files
authored
Modernize cmake
- Increase minimum cmake version - Replace deprecated ament_target_dependencies with target_link_libraries
1 parent 148991a commit af59b86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.20)
22
project(srdfdom LANGUAGES CXX)
33

44
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
@@ -31,10 +31,10 @@ target_include_directories(${PROJECT_NAME}
3131
target_link_libraries(${PROJECT_NAME} PUBLIC tinyxml2::tinyxml2)
3232

3333
# Ament dependencies
34-
ament_target_dependencies(${PROJECT_NAME} PUBLIC
34+
target_link_libraries(${PROJECT_NAME} PUBLIC
3535
console_bridge
36-
urdf
37-
urdfdom_headers
36+
urdf::urdf
37+
urdfdom_headers::urdfdom_headers
3838
)
3939

4040
install(TARGETS ${PROJECT_NAME}

0 commit comments

Comments
 (0)