build: Do not link stacktrace on ClangCL

This commit is contained in:
Gabriel Ferreira
2025-09-11 18:41:06 +02:00
parent 160f76154e
commit 41cc8685fa

View File

@@ -74,7 +74,7 @@ if(STACKTRACE_LIBRARY_ENABLED)
else()
set(stacktrace_flags -lstdc++exp CACHE INTERNAL "")
endif()
elseif(CLANG)
elseif(CLANG AND (NOT ("${CMAKE_CXX_SIMULATE_ID}" MATCHES "MSVC")))
set(stacktrace_flags -lstdc++_libbacktrace CACHE INTERNAL "")
else()
# Most likely MSVC, which does not need custom flags for this