Skip to content

Commit f52a6f5

Browse files
committed
cmake update
1 parent 5422021 commit f52a6f5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

robotiq_hande_driver/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.16)
22
project(robotiq_hande_driver)
33

4-
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
4+
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
55
add_compile_options(-Wall -Wextra -Wpedantic)
66
endif()
77

@@ -19,15 +19,13 @@ foreach(Dependency IN ITEMS ${HW_IF_INCLUDE_DEPENDS})
1919
find_package(${Dependency} REQUIRED)
2020
endforeach()
2121

22-
add_library(
23-
${PROJECT_NAME}
22+
add_library(${PROJECT_NAME}
2423
SHARED
2524
hardware/src/hande_hardware_interface.cpp
2625
)
2726

2827
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
29-
target_include_directories(
30-
robotiq_hande_driver PUBLIC
28+
target_include_directories(robotiq_hande_driver PUBLIC
3129
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/hardware/include>
3230
$<INSTALL_INTERFACE:include>
3331
)

0 commit comments

Comments
 (0)