Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
now fix broken Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-moen committed Jun 6, 2021
1 parent 37ba0f7 commit 9a50919
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ endif ()
# NB: cannot use find_package(OpenVDB ...) due to https://github.com/AcademySoftwareFoundation/openvdb/issues/412
if (MSYS)
set( LibOpenVDB "openvdb" )
set( LibHalf "Half" )
else ()
set( LibOpenVDB "openvdb_static" )
set( LibHalf "" )
endif ()

# Boost library (Windows port required 1.72, 1.65 is latest for Ubuntu 18.04)
Expand Down Expand Up @@ -143,7 +145,7 @@ endif ()
set(Libs
libcurv_geom libcurv imgui glfw glad ${LibOpenGL} replxx double-conversion
Boost::iostreams Boost::filesystem Boost::system ${LibOpenVDB} tbb
pthread ${LibDl} ${LibOmp})
${LibHalf} pthread ${LibDl} ${LibOmp})

target_link_libraries(curv PUBLIC ${Libs})

Expand Down

0 comments on commit 9a50919

Please sign in to comment.