Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit fe2cfb2

Browse files
committed
use directory specific compiler flags
1 parent 535f160 commit fe2cfb2

13 files changed

Lines changed: 19 additions & 12 deletions

File tree

clients/roscpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(roscpp)
33

44
if(NOT WIN32)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
5+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
66
endif()
77

88
find_package(catkin REQUIRED COMPONENTS

test/test_rosbag/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.3)
33
project(test_rosbag)
44

55
if(NOT WIN32)
6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
6+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
77
endif()
88

99
find_package(catkin REQUIRED COMPONENTS message_generation rosbag rosconsole roscpp rosgraph_msgs rostest rosunit topic_tools xmlrpcpp)

test/test_roscpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.3)
33
project(test_roscpp)
44

55
if(NOT WIN32)
6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
6+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
77
endif()
88

99
find_package(catkin REQUIRED COMPONENTS

tools/rosbag/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(rosbag)
33

44
if(NOT WIN32)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
5+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
66
endif()
77

88
find_package(catkin REQUIRED COMPONENTS rosbag_storage rosconsole roscpp topic_tools xmlrpcpp)

tools/rosbag_storage/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.3)
33
project(rosbag_storage)
44

55
if(NOT WIN32)
6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
6+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
77
endif()
88

99
find_package(console_bridge REQUIRED)

tools/rosconsole/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(rosconsole)
33

44
if(NOT WIN32)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
5+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
66
endif()
77

88
find_package(catkin REQUIRED COMPONENTS cpp_common rostime rosunit)

tools/rosout/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(rosout)
33

44
if(NOT WIN32)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
5+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
66
endif()
77

88
find_package(catkin REQUIRED COMPONENTS roscpp)

tools/topic_tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(topic_tools)
33

44
if(NOT WIN32)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
5+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
66
endif()
77

88
find_package(catkin COMPONENTS cpp_common message_generation rosconsole roscpp rostime std_msgs xmlrpcpp)

tools/topic_tools/src/drop.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,3 @@ int main(int argc, char **argv)
9191
ros::spin();
9292
return 0;
9393
}
94-

utilities/message_filters/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(message_filters)
33

44
if(NOT WIN32)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
5+
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Wextra")
66
endif()
77

88
find_package(catkin REQUIRED COMPONENTS roscpp xmlrpcpp rosconsole)

0 commit comments

Comments
 (0)