open-rmf / rmf

Root repository for the RMF software
Apache License 2.0
225 stars 58 forks source link

Update CMakeLists.txt to use target_compile_features instead of CMAKE_CXX_STANDARD #94

Open mxgrey opened 2 years ago

mxgrey commented 2 years ago

Now that we're targeting platforms with cmake-3.16+ available, we should use target_compile_features with cxx_std_## instead of set(CMAKE_CXX_STANDARD ##). Using target_compile_features helps downstream packages to identify the minimum standard that their compiler needs to support.