aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nanogui/cmake4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/nanogui/cmake4.patch')
-rw-r--r--vcpkg/ports/nanogui/cmake4.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/nanogui/cmake4.patch b/vcpkg/ports/nanogui/cmake4.patch
new file mode 100644
index 0000000..479520f
--- /dev/null
+++ b/vcpkg/ports/nanogui/cmake4.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 22dc16fc59..894fcce2ad 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -116,7 +116,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
+ endif()
+
+-if (CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|Intel)$")
++if (CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang|Intel)$")
+ CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
+ CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
+
+@@ -131,7 +131,7 @@ endif()
+
+ # Various optimizations for shared library release builds
+ if (NANOGUI_BUILD_SHARED)
+- if (U_CMAKE_BUILD_TYPE MATCHES REL AND CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang)$")
++ if (U_CMAKE_BUILD_TYPE MATCHES REL AND CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
+ # Set the default symbol visibility to hidden
+ if (NOT CMAKE_CXX_FLAGS MATCHES "-fvisibility")
+ set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")