mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
Testing - Update samples C++ version (#606)
- Updating Qt project files to use C++17 standard instead of GNU++11 - Configuring Visual Studio project files to use C++17 language standard - Setting CMake projects to require C++17 standard
This commit is contained in:
@@ -90,4 +90,7 @@ include_directories (${CMAKE_BINARY_DIR}/inc
|
||||
${Geometry_RESOURCE_DIR}
|
||||
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
||||
|
||||
target_link_libraries (Geometry mfcsample)
|
||||
target_link_libraries (Geometry mfcsample)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
@@ -577,4 +577,7 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@@ -62,3 +62,6 @@ include_directories (${CMAKE_BINARY_DIR}/inc
|
||||
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
||||
|
||||
target_link_libraries (Modeling mfcsample TKDESTEP TKBO)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
@@ -83,6 +83,9 @@
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@@ -59,4 +59,7 @@ include_directories (${CMAKE_BINARY_DIR}/inc
|
||||
${ImportExport_SRC_DIR}
|
||||
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
||||
|
||||
target_link_libraries (ImportExport mfcsample)
|
||||
target_link_libraries (ImportExport mfcsample)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
@@ -353,4 +353,7 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@@ -85,4 +85,7 @@ include_directories (${CMAKE_BINARY_DIR}/inc
|
||||
${HLR_SRC_DIR}
|
||||
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
||||
|
||||
target_link_libraries (HLR mfcsample)
|
||||
target_link_libraries (HLR mfcsample)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
@@ -410,4 +410,7 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@@ -187,3 +187,6 @@ set (mfcsample_USED_LIBS TKDEVRML
|
||||
${CSF_OpenGlLibs})
|
||||
|
||||
target_link_libraries (mfcsample ${mfcsample_USED_LIBS})
|
||||
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
@@ -699,4 +699,7 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user