Skip to content

Commit

Permalink
Comment out cmake block setting compile options just as TM did
Browse files Browse the repository at this point in the history
  • Loading branch information
SachCZ committed Oct 18, 2024
1 parent 471cdbb commit 8bbb2f8
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 8bbb2f8

Please sign in to comment.