Fix missing symbols for boost 1.67 and BOOST_ALL_NO_LIB

This commit is contained in:
Thomas Krijnen
2018-08-15 09:07:40 +02:00
committed by GitHub
parent caa6056f01
commit 5609cbdde9
+8 -4
View File
@@ -118,9 +118,11 @@ ELSE()
# Disable Boost's autolinking as the libraries to be linked to are supplied # Disable Boost's autolinking as the libraries to be linked to are supplied
# already by CMake, and it's going to conflict if there are multiple, as is # already by CMake, and it's going to conflict if there are multiple, as is
# the case in conda-forge's libboost feedstock. # the case in conda-forge's libboost feedstock.
# ADD_DEFINITIONS(-DBOOST_ALL_NO_LIB)
# Should this always be specified? IF(WIN32)
ADD_DEFINITIONS(-DBOOST_ALL_NO_LIB) # Necessary for boost version >= 1.67
SET(BCRYPT_LIBRARIES "bcrypt.lib")
ENDIF()
ENDIF() ENDIF()
set(BOOST_COMPONENTS system program_options regex thread date_time) set(BOOST_COMPONENTS system program_options regex thread date_time)
@@ -569,8 +571,10 @@ set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
add_library(IfcParse ${IFCPARSE_FILES}) add_library(IfcParse ${IFCPARSE_FILES})
set_target_properties(IfcParse PROPERTIES COMPILE_FLAGS -DIFC_PARSE_EXPORTS) set_target_properties(IfcParse PROPERTIES COMPILE_FLAGS -DIFC_PARSE_EXPORTS)
TARGET_LINK_LIBRARIES(IfcParse ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES})
IF(UNICODE_SUPPORT) IF(UNICODE_SUPPORT)
TARGET_LINK_LIBRARIES(IfcParse ${ICU_LIBRARIES} ${Boost_LIBRARIES}) TARGET_LINK_LIBRARIES(IfcParse ${ICU_LIBRARIES})
ENDIF() ENDIF()
# IfcGeom # IfcGeom