Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Commit

Permalink
build: don't set CMAKE_CXX_STANDARD
Browse files Browse the repository at this point in the history
robotology/how-to-export-cpp-library#44

Signed-off-by: black-desk <me@black-desk.cn>
  • Loading branch information
black-desk committed Jul 24, 2023
1 parent d98dca0 commit 0533824
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ set (

message ("QSerializer build with QT${QSERIALIZER_QT_VERSION_MAJOR}")

set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)

set (CMAKE_AUTOMOC ON)
set (CMAKE_AUTORCC ON)
set (CMAKE_AUTOUIC ON)
Expand All @@ -51,6 +48,7 @@ add_library (QSerializerCore INTERFACE)
add_library (QSerializer::Core ALIAS QSerializerCore)

# cmake-format: off
target_compile_features (QSerializer PUBLIC cxx_std_17)
target_sources (
QSerializerCore
PUBLIC
Expand Down

0 comments on commit 0533824

Please sign in to comment.