aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pcl/fix-clang-cl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/pcl/fix-clang-cl.patch')
-rw-r--r--vcpkg/ports/pcl/fix-clang-cl.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/pcl/fix-clang-cl.patch b/vcpkg/ports/pcl/fix-clang-cl.patch
new file mode 100644
index 0000000..31d2b02
--- /dev/null
+++ b/vcpkg/ports/pcl/fix-clang-cl.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fad95c9..b4ca305 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -51,7 +51,7 @@ set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
+ # Compiler identification
+ # Define a variable CMAKE_COMPILER_IS_X where X is the compiler short name.
+ # Note: CMake automatically defines one for GNUCXX, nothing to do in this case.
+-if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
++if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT MSVC)
+ set(CMAKE_COMPILER_IS_CLANG 1)
+ elseif(__COMPILER_PATHSCALE)
+ set(CMAKE_COMPILER_IS_PATHSCALE 1)