CMake 3.2 does not support cxx_std_11 target_compile_feature.
This commit is contained in:
@@ -49,9 +49,10 @@ add_library (Barcode STATIC
|
|||||||
${barcode_moc_sources}
|
${barcode_moc_sources}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features (Barcode
|
#target_compile_features (Barcode
|
||||||
PUBLIC cxx_std_11
|
# PUBLIC cxx_std_11
|
||||||
)
|
#)
|
||||||
|
set_property (TARGET Barcode PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_include_directories (Barcode
|
target_include_directories (Barcode
|
||||||
PUBLIC ..
|
PUBLIC ..
|
||||||
|
|||||||
@@ -33,9 +33,10 @@ add_library (Merge STATIC
|
|||||||
${merge_moc_sources}
|
${merge_moc_sources}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features (Merge
|
#target_compile_features (Merge
|
||||||
PUBLIC cxx_std_11
|
# PUBLIC cxx_std_11
|
||||||
)
|
#)
|
||||||
|
set_property (TARGET Merge PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_include_directories (Merge
|
target_include_directories (Merge
|
||||||
PUBLIC ..
|
PUBLIC ..
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ add_executable (glabels-batch-qt WIN32
|
|||||||
${glabels-batch_sources}
|
${glabels-batch_sources}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features (glabels-batch-qt
|
#target_compile_features (glabels-batch-qt
|
||||||
PUBLIC cxx_std_11
|
# PUBLIC cxx_std_11
|
||||||
)
|
#)
|
||||||
|
set_property (TARGET glabels-batch-qt PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_link_libraries (glabels-batch-qt
|
target_link_libraries (glabels-batch-qt
|
||||||
Model
|
Model
|
||||||
|
|||||||
@@ -102,9 +102,10 @@ add_executable (glabels-qt WIN32
|
|||||||
${glabels_win_rc}
|
${glabels_win_rc}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features (glabels-qt
|
#target_compile_features (glabels-qt
|
||||||
PUBLIC cxx_std_11
|
# PUBLIC cxx_std_11
|
||||||
)
|
#)
|
||||||
|
set_property (TARGET glabels-qt PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_include_directories (glabels-qt
|
target_include_directories (glabels-qt
|
||||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
|||||||
@@ -33,9 +33,10 @@ add_library (glbarcode STATIC
|
|||||||
${GLBARCODE_SOURCES}
|
${GLBARCODE_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features (glbarcode
|
#target_compile_features (glbarcode
|
||||||
PUBLIC cxx_std_11
|
# PUBLIC cxx_std_11
|
||||||
)
|
#)
|
||||||
|
set_property (TARGET glbarcode PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_include_directories (glbarcode
|
target_include_directories (glbarcode
|
||||||
PUBLIC ..
|
PUBLIC ..
|
||||||
|
|||||||
@@ -79,9 +79,10 @@ add_library (Model STATIC
|
|||||||
${Model_moc_sources}
|
${Model_moc_sources}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features (Model
|
#target_compile_features (Model
|
||||||
PUBLIC cxx_std_11
|
# PUBLIC cxx_std_11
|
||||||
)
|
#)
|
||||||
|
set_property (TARGET Model PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_include_directories (Model
|
target_include_directories (Model
|
||||||
PUBLIC .. ${CMAKE_CURRENT_BINARY_DIR}/..
|
PUBLIC .. ${CMAKE_CURRENT_BINARY_DIR}/..
|
||||||
|
|||||||
Reference in New Issue
Block a user