diff --git a/backends/barcode/CMakeLists.txt b/backends/barcode/CMakeLists.txt index 383b5b9..a4b1e34 100644 --- a/backends/barcode/CMakeLists.txt +++ b/backends/barcode/CMakeLists.txt @@ -49,9 +49,10 @@ add_library (Barcode STATIC ${barcode_moc_sources} ) -target_compile_features (Barcode - PUBLIC cxx_std_11 -) +#target_compile_features (Barcode +# PUBLIC cxx_std_11 +#) +set_property (TARGET Barcode PROPERTY CXX_STANDARD 11) target_include_directories (Barcode PUBLIC .. diff --git a/backends/merge/CMakeLists.txt b/backends/merge/CMakeLists.txt index 613eabc..bc8d413 100644 --- a/backends/merge/CMakeLists.txt +++ b/backends/merge/CMakeLists.txt @@ -33,9 +33,10 @@ add_library (Merge STATIC ${merge_moc_sources} ) -target_compile_features (Merge - PUBLIC cxx_std_11 -) +#target_compile_features (Merge +# PUBLIC cxx_std_11 +#) +set_property (TARGET Merge PROPERTY CXX_STANDARD 11) target_include_directories (Merge PUBLIC .. diff --git a/glabels-batch/CMakeLists.txt b/glabels-batch/CMakeLists.txt index c2abedc..672720c 100644 --- a/glabels-batch/CMakeLists.txt +++ b/glabels-batch/CMakeLists.txt @@ -14,9 +14,10 @@ add_executable (glabels-batch-qt WIN32 ${glabels-batch_sources} ) -target_compile_features (glabels-batch-qt - PUBLIC cxx_std_11 -) +#target_compile_features (glabels-batch-qt +# PUBLIC cxx_std_11 +#) +set_property (TARGET glabels-batch-qt PROPERTY CXX_STANDARD 11) target_link_libraries (glabels-batch-qt Model diff --git a/glabels/CMakeLists.txt b/glabels/CMakeLists.txt index 5bd6777..d18be0d 100644 --- a/glabels/CMakeLists.txt +++ b/glabels/CMakeLists.txt @@ -102,9 +102,10 @@ add_executable (glabels-qt WIN32 ${glabels_win_rc} ) -target_compile_features (glabels-qt - PUBLIC cxx_std_11 -) +#target_compile_features (glabels-qt +# PUBLIC cxx_std_11 +#) +set_property (TARGET glabels-qt PROPERTY CXX_STANDARD 11) target_include_directories (glabels-qt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} diff --git a/glbarcode/CMakeLists.txt b/glbarcode/CMakeLists.txt index ca561c1..6471024 100644 --- a/glbarcode/CMakeLists.txt +++ b/glbarcode/CMakeLists.txt @@ -33,9 +33,10 @@ add_library (glbarcode STATIC ${GLBARCODE_SOURCES} ) -target_compile_features (glbarcode - PUBLIC cxx_std_11 -) +#target_compile_features (glbarcode +# PUBLIC cxx_std_11 +#) +set_property (TARGET glbarcode PROPERTY CXX_STANDARD 11) target_include_directories (glbarcode PUBLIC .. diff --git a/model/CMakeLists.txt b/model/CMakeLists.txt index a190a28..00143ae 100644 --- a/model/CMakeLists.txt +++ b/model/CMakeLists.txt @@ -79,9 +79,10 @@ add_library (Model STATIC ${Model_moc_sources} ) -target_compile_features (Model - PUBLIC cxx_std_11 -) +#target_compile_features (Model +# PUBLIC cxx_std_11 +#) +set_property (TARGET Model PROPERTY CXX_STANDARD 11) target_include_directories (Model PUBLIC .. ${CMAKE_CURRENT_BINARY_DIR}/..