Skip to content

Commit

Permalink
One more attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatena committed Sep 23, 2024
1 parent e56c443 commit 471cdbb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openvdb/openvdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -672,14 +672,14 @@ if(OPENVDB_CORE_STATIC)
PROPERTIES OUTPUT_NAME ${OPENVDB_STATIC_LIBRARY_NAME})

if(MSVC)
#if(NOT CMAKE_MSVC_RUNTIME_LIBRARY)
# # NOTE: MSVC_RUNTIME_LIBRARY does not propagate to targets, so
# # also add it explicitly as a compile option
# set_target_properties(openvdb_static PROPERTIES
# MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
# target_compile_options(openvdb_static PUBLIC
# "$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/MT$<$<CONFIG:Debug>:d>>")
#endif()
if(NOT CMAKE_MSVC_RUNTIME_LIBRARY)
# NOTE: MSVC_RUNTIME_LIBRARY does not propagate to targets, so
# also add it explicitly as a compile option
set_target_properties(openvdb_static PROPERTIES
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_compile_options(openvdb_static PUBLIC
"$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/MT$<$<CONFIG:Debug>:d>>")
endif()
set_target_properties(openvdb_static PROPERTIES PREFIX "lib")
endif()
endif()
Expand Down

0 comments on commit 471cdbb

Please sign in to comment.