mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 20:49:44 +00:00
Reference correct cgal kernel impl and build wrapper with /force:multiple as well
This commit is contained in:
@@ -946,12 +946,6 @@ TARGET_LINK_LIBRARIES(Serializers ${SERIALIZER_SCHEMA_LIBRARIES} ${OPENCOLLADA_L
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
|
||||||
# @todo still needs to be understood better, but the cgal and cgal-simple kernel cause multiply defined boost lambda placeholders _1 ... _3
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /FORCE:MULTIPLE")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (BUILD_CONVERT)
|
if (BUILD_CONVERT)
|
||||||
|
|
||||||
if (WITH_CGAL AND CITYJSON_SUPPORT)
|
if (WITH_CGAL AND CITYJSON_SUPPORT)
|
||||||
@@ -1046,6 +1040,13 @@ if (GIT_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
# @todo still needs to be understood better, but the cgal and cgal-simple kernel cause multiply defined boost lambda placeholders _1 ... _3
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /FORCE:MULTIPLE")
|
||||||
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
IF(BUILD_DOCUMENTATION)
|
IF(BUILD_DOCUMENTATION)
|
||||||
set(CMAKE_MODULE_PATH "../docs/cmake")
|
set(CMAKE_MODULE_PATH "../docs/cmake")
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#undef CGALCONVERSIONRESULT_H
|
#undef CGALCONVERSIONRESULT_H
|
||||||
#define IFOPSH_SIMPLE_KERNEL
|
#define IFOPSH_SIMPLE_KERNEL
|
||||||
#include "../ifcgeom/kernels/cgal/CgalKernel.h"
|
#include "../ifcgeom/kernels/cgal/CgalKernel.h"
|
||||||
|
#undef CgalKernel
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace ifcopenshell::geometry;
|
using namespace ifcopenshell::geometry;
|
||||||
|
|||||||
Reference in New Issue
Block a user