Skip to content

Commit 77d5342

Browse files
Stinkfist0aothms
authored andcommitted
Make sure to link ifcwrap to Boost libs + fix integer conversion warning.
1 parent fa76aa9 commit 77d5342

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ifcparse/IfcWrite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void IfcWritableEntity::setArgument(int i, Argument* a, IfcUtil::ArgumentType at
228228
break;
229229
case IfcUtil::Argument_EMPTY_AGGREGATE:
230230
case IfcUtil::Argument_AGGREGATE_OF_EMPTY_AGGREGATE: {
231-
IfcUtil::ArgumentType t2 = IfcSchema::Type::GetAttributeType(type(), (unsigned) i);
231+
IfcUtil::ArgumentType t2 = IfcSchema::Type::GetAttributeType(type(), (unsigned char) i);
232232
this->setArgument(i, a, t2); }
233233
break;
234234
default:

src/ifcwrap/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ ENDIF()
5252

5353
SET_SOURCE_FILES_PROPERTIES(IfcPython.i PROPERTIES CPLUSPLUS ON)
5454
SWIG_ADD_MODULE(ifcopenshell_wrapper python IfcPython.i)
55-
SWIG_LINK_LIBRARIES(ifcopenshell_wrapper ${IFCOPENSHELL_LIBRARIES} ${PYTHON_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${ICU_LIBRARIES})
55+
SWIG_LINK_LIBRARIES(ifcopenshell_wrapper ${IFCOPENSHELL_LIBRARIES} ${PYTHON_LIBRARIES} ${OPENCASCADE_LIBRARIES}
56+
${ICU_LIBRARIES} ${Boost_LIBRARIES})
5657
if ((NOT WIN32) AND BUILD_SHARED_LIBS)
5758
SET_INSTALL_RPATHS(${SWIG_MODULE_ifcopenshell_wrapper_REAL_NAME} "${IFCDIRS};${OCC_LIBRARY_DIR};${ICU_LIBRARY_DIR}")
5859
endif()

0 commit comments

Comments
 (0)