From 051c6df956e88ecb92e118ef161a99d82af53e42 Mon Sep 17 00:00:00 2001 From: Steve Macenski Date: Thu, 1 Jul 2021 16:54:20 -0700 Subject: [PATCH] adding -fPIC compiler flag per warning suggestion (#335) --- pcl_ros/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcl_ros/CMakeLists.txt b/pcl_ros/CMakeLists.txt index b5f8aa97..7340c7cb 100644 --- a/pcl_ros/CMakeLists.txt +++ b/pcl_ros/CMakeLists.txt @@ -5,7 +5,7 @@ if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic -fPIC) endif() ## Find system dependencies