Skip to content

Commit

Permalink
when using pcl do not allow it to override compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 22, 2019
1 parent 8bc5b58 commit 29cd905
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cMake/FreeCAD_Helpers/SetupPCL.cmake
Expand Up @@ -6,6 +6,9 @@ macro(SetupPCL)
# PCL needs to be found before boost because the PCLConfig also calls find_package(Boost ...),
# but with different components
if(FREECAD_USE_PCL)
# pcl overrides the compiler flags by adding -Wno-deprecated
set (SAVE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
find_package(PCL REQUIRED COMPONENTS common kdtree features surface io filters segmentation sample_consensus)
set (CMAKE_CXX_FLAGS ${SAVE_CXX_FLAGS})
endif(FREECAD_USE_PCL)
endmacro(SetupPCL)

0 comments on commit 29cd905

Please sign in to comment.