Skip to content

Commit

Permalink
cmake: use CMAKE_CXX_STANDARD_REQUIRED for C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Oct 22, 2019
1 parent 80a80f8 commit c99583d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.1)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

cmake_policy(SET CMP0025 NEW)

Expand Down
2 changes: 0 additions & 2 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ target_link_libraries(mavsdk
${CMAKE_THREAD_LIBS_INIT}
)

target_compile_features(mavsdk PRIVATE cxx_std_17)

if (IOS)
target_link_libraries(mavsdk
PUBLIC
Expand Down

0 comments on commit c99583d

Please sign in to comment.