Skip to content

Commit

Permalink
Don’t set CMAKE_MSVC_RUNTIME_LIBRARY in debug builds (libjxl#3837)
Browse files Browse the repository at this point in the history
Fixes libjxl#3834.

(cherry picked from commit 9f2402d)
  • Loading branch information
sboukortt authored and mo271 committed Nov 26, 2024
1 parent a60d0f5 commit b6aad5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ if(JPEGXL_STATIC)

# https://learn.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view=msvc-170
# https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
set(CMAKE_MSVC_RUNTIME_LIBRARY "$<$<NOT:$<CONFIG:Debug>>:MultiThreaded>" CACHE STRING "")

# Clang developers say that in case to use "static" we have to build stdlib
# ourselves; for real use case we don't care about stdlib, as it is "granted",
Expand Down

0 comments on commit b6aad5a

Please sign in to comment.