Skip to content

Commit 92f769e

Browse files
committed
bcrypt fix
1 parent ca39471 commit 92f769e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,14 @@ add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
204204
EXCLUDE_FROM_ALL)
205205
endif()
206206

207+
if(MSVC)
208+
SET(BCRYPT_LIBRARIES "bcrypt.lib")
209+
ENDIF()
210+
207211
set(LIBVOXELIZER_HEADER_FILES progress_writer.h dim3.h sweep.h shift.h collapse.h edge_detect.h fill_gaps.h offset.h polyfill.h resample.h storage.h writer.h factory.h processor.h volume.h voxelizer.h traversal.h util.h json_logger.h)
208212
set(LIBVOXELIZER_SOURCE_FILES tribox3.cpp polyfill.cpp progress_writer.cpp storage.cpp factory.cpp json_logger.cpp)
209213
add_library(libvoxel STATIC ${LIBVOXELIZER_HEADER_FILES} ${LIBVOXELIZER_SOURCE_FILES})
210-
target_link_libraries(libvoxel ${IFC_LIBRARIES} ${ICU_LIBRARIES} ${Boost_LIBRARIES} "bcrypt.lib" ${OCC_LIBRARIES} ${LIB_RT} ${dl} ${CMAKE_THREAD_LIBS_INIT} ${WS2_LIBRARIES})
214+
target_link_libraries(libvoxel ${IFC_LIBRARIES} ${ICU_LIBRARIES} ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES} ${OCC_LIBRARIES} ${LIB_RT} ${dl} ${CMAKE_THREAD_LIBS_INIT} ${WS2_LIBRARIES})
211215

212216
set(LIBVOXEC_HEADER_FILES voxelfile.h voxec.h)
213217
set(LIBVOXEC_SOURCE_FILES voxec.cpp)

0 commit comments

Comments
 (0)