Skip to content

Commit 7dacdc9

Browse files
committed
#34 Fix macOS Intel compilation.
1 parent 8567288 commit 7dacdc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,10 @@ endif()
224224

225225
if(APPLE)
226226
target_compile_definitions(${TARGET} PUBLIC JUCE_AU=1)
227-
#target_compile_options(${TARGET} PRIVATE "-mfma")
227+
228+
# This option is relevant to x86_64 target architecture,
229+
# but I do not see how to detect the target architecture
230+
# during CMake generation time. So this will cause warnings when
231+
# compiling for arm64.
232+
target_compile_options(${TARGET} PRIVATE "-mfma")
228233
endif()

0 commit comments

Comments
 (0)