MINGW-packages/mingw-w64-nanogui/002-disable-native-target.patch
Алексей 6226d10ce8
nanogui-git: New package. Prereq for MaterialX (#24567)
* nanogui-git: New package. Prereq for MaterialX

* Fix make dependencies

* Try fix search right python

* Disable hardcoded native target processor

* nanogui: pin to commit

* nanogui: checksum git checkout as well

---------

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
2025-06-18 07:57:50 +02:00

12 lines
477 B
Diff

--- nanogui/CMakeLists.txt.orig 2025-06-16 14:56:58.689929800 +0300
+++ nanogui/CMakeLists.txt 2025-06-16 14:57:03.182056800 +0300
@@ -79,7 +79,7 @@
# default. You may want to set MTS_NATIVE_FLAGS to "-march=native" to use all
# instructions available on a particular machine.
-if (MSVC)
+if (WIN32)
set(NANOGUI_NATIVE_FLAGS_DEFAULT "")
elseif (APPLE AND ((CMAKE_OSX_ARCHITECTURES MATCHES "arm64") OR
(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")))