File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,9 +118,11 @@ ELSE()
118118 # Disable Boost's autolinking as the libraries to be linked to are supplied
119119 # already by CMake, and it's going to conflict if there are multiple, as is
120120 # the case in conda-forge's libboost feedstock.
121- #
122- # Should this always be specified?
123- ADD_DEFINITIONS (-DBOOST_ALL_NO_LIB )
121+ ADD_DEFINITIONS (-DBOOST_ALL_NO_LIB )
122+ IF (WIN32 )
123+ # Necessary for boost version >= 1.67
124+ SET (BCRYPT_LIBRARIES "bcrypt.lib" )
125+ ENDIF ()
124126ENDIF ()
125127
126128set (BOOST_COMPONENTS system program_options regex thread date_time)
@@ -569,8 +571,10 @@ set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
569571add_library (IfcParse ${IFCPARSE_FILES} )
570572set_target_properties (IfcParse PROPERTIES COMPILE_FLAGS -DIFC_PARSE_EXPORTS )
571573
574+ TARGET_LINK_LIBRARIES (IfcParse ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES} )
575+
572576IF (UNICODE_SUPPORT)
573- TARGET_LINK_LIBRARIES (IfcParse ${ICU_LIBRARIES} ${Boost_LIBRARIES} )
577+ TARGET_LINK_LIBRARIES (IfcParse ${ICU_LIBRARIES} )
574578ENDIF ()
575579
576580# IfcGeom
You can’t perform that action at this time.
0 commit comments