cmake: fix macos build
authortobtoht <tob@featherwallet.org>
Tue, 11 Nov 2025 14:13:19 +0000 (15:13 +0100)
committertobtoht <tob@featherwallet.org>
Tue, 11 Nov 2025 14:13:19 +0000 (15:13 +0100)
src/CMakeLists.txt

index 8364655f3670da7c6c4b9ce94dec4fdb69ad661c..1ad529ca62a5df060b5e986a0620fc6a9c3f220e 100644 (file)
@@ -1,6 +1,9 @@
 set(CMAKE_AUTOMOC ON)
 set(CMAKE_AUTOUIC ON)
 set(CMAKE_AUTORCC ON)
+IF(STATIC AND APPLE)
+    set(CMAKE_AUTOMOC_COMPILER_PREDEFINES OFF)
+ENDIF()
 
 set(QT_COMPONENTS
         Core