Skip to content

Commit 21fbbb2

Browse files
committed
build: support clang-cl compiler
1 parent bc70e5a commit 21fbbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ unset(DD_TRACE_VERSION_CPP_CONTENTS)
5353

5454
message(STATUS "dd-trace-cpp transport=${DD_TRACE_TRANSPORT}")
5555

56-
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
56+
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT MATCHES "MSVC"))
5757
if (BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
5858
message(FATAL_ERROR "Can't build both static and shared libary for MSVC")
5959
endif ()

0 commit comments

Comments
 (0)