Skip to content

Commit c23c01d

Browse files
committed
update openmp in cmake files
1 parent a3ac910 commit c23c01d

File tree

13 files changed

+23
-133
lines changed

13 files changed

+23
-133
lines changed

Build IFC++.pdf

-386 KB
Binary file not shown.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MESSAGE(STATUS "----------------------------------------------------------------
1919
OPTION(BUILD_CONSOLE_APPLICATION "Build an example CLI application" ON)
2020
OPTION(BUILD_VIEWER_APPLICATION "Build the viewer example application" ON)
2121
option(USE_OSG_DEBUG "Use openscenegraph debug library" OFF)
22-
OPTION(BUILD_STATIC_LIBRARY "Build static library" ON)
22+
OPTION(BUILD_STATIC_LIBRARY "Build static library" OFF)
2323

2424
IF(NOT WIN32)
2525
IF("${CMAKE_BUILD_TYPE}" MATCHES "Debug")

IfcPlusPlus/IfcPlusPlus.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,6 @@
15501550
<ClCompile Include="src\ifcpp\model\AttributeObject.cpp" />
15511551
<ClCompile Include="src\ifcpp\model\BuildingGuid.cpp" />
15521552
<ClCompile Include="src\ifcpp\model\BuildingModel.cpp" />
1553-
<ClCompile Include="src\ifcpp\model\PythonWrapperInterface.cpp" />
15541553
<ClCompile Include="src\ifcpp\model\UnitConverter.cpp" />
15551554
<ClCompile Include="src\ifcpp\reader\AbstractReader.cpp" />
15561555
<ClCompile Include="src\ifcpp\reader\ReaderSTEP.cpp" />

IfcPlusPlus/IfcPlusPlus.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3857,8 +3857,5 @@
38573857
<ClCompile Include="src\ifcpp\IFC4\lib\IfcTriangulatedIrregularNetwork.cpp">
38583858
<Filter>Quelldateien</Filter>
38593859
</ClCompile>
3860-
<ClCompile Include="src\ifcpp\model\PythonWrapperInterface.cpp">
3861-
<Filter>Quelldateien</Filter>
3862-
</ClCompile>
38633860
</ItemGroup>
38643861
</Project>

IfcPlusPlus/src/ifcpp/geometry/Carve/ConverterOSG.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
2626
#include <osgUtil/Tessellator>
2727

2828
#include <ifcpp/model/BasicTypes.h>
29+
#include <ifcpp/model/OpenMPIncludes.h>
2930
#include <ifcpp/model/StatusCallback.h>
3031
#include <ifcpp/IFC4/include/IfcCurtainWall.h>
3132
#include <ifcpp/IFC4/include/IfcFeatureElementSubtraction.h>

IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
2020
#include <unordered_set>
2121
#include <ifcpp/model/BasicTypes.h>
2222
#include <ifcpp/model/BuildingModel.h>
23+
#include <ifcpp/model/OpenMPIncludes.h>
2324
#include <ifcpp/model/StatusCallback.h>
2425
#include <ifcpp/IFC4/include/IfcCurtainWall.h>
2526
#include <ifcpp/IFC4/include/IfcGloballyUniqueId.h>

IfcPlusPlus/src/ifcpp/geometry/OCC/GeometryConverterOCC.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
3232
#include <ifcpp/geometry/GeometrySettings.h>
3333
#include <ifcpp/model/BuildingModel.h>
3434
#include <ifcpp/model/BasicTypes.h>
35+
#include <ifcpp/model/OpenMPIncludes.h>
3536
#include <ifcpp/model/StatusCallback.h>
3637
#include <ifcpp/IFC4/include/IfcCurtainWall.h>
3738
#include <ifcpp/IFC4/include/IfcPropertySetDefinitionSet.h>

IfcPlusPlus/src/ifcpp/geometry/OCC/SceneGraphConverterOCC.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
4343
#include <ifcpp/geometry/SceneGraphUtils.h>
4444
#include <ifcpp/model/BuildingModel.h>
4545
#include <ifcpp/model/BasicTypes.h>
46+
#include <ifcpp/model/OpenMPIncludes.h>
4647
#include <ifcpp/model/StatusCallback.h>
4748
#include <ifcpp/IFC4/include/IfcCurtainWall.h>
4849
#include <ifcpp/IFC4/include/IfcFeatureElementSubtraction.h>

IfcPlusPlus/src/ifcpp/geometry/StylesConverter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
2121

2222
#include <ifcpp/geometry/AppearanceData.h>
2323
#include <ifcpp/model/BasicTypes.h>
24+
#include <ifcpp/model/OpenMPIncludes.h>
2425
#include <ifcpp/model/StatusCallback.h>
2526
#include <ifcpp/reader/ReaderUtil.h>
2627
#include <ifcpp/IFC4/include/IfcSpecularHighlightSelect.h>

IfcPlusPlus/src/ifcpp/model/OpenMPIncludes.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,15 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
1717

1818
#pragma once
1919

20-
#ifdef ENABLE_OPENMP
20+
#ifndef _DEBUG
21+
#ifndef ENABLE_OPENMP
22+
#if defined(_OPENMP)
23+
#define ENABLE_OPENMP
24+
#endif
25+
#endif
26+
#endif
2127

28+
#ifdef ENABLE_OPENMP
2229
#include <omp.h>
2330

2431
class Mutex

0 commit comments

Comments
 (0)