From 27590c3a8f00e0ab1def59badf95afa55d20f6ba Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 15 Dec 2011 06:41:39 +0100 Subject: [PATCH] Suppress link warning about QuickTime being 32-bit only. If we are actually missing symbols because a required architecture is missing from a library, we'll get a link error as usual, so suppressing this warning is pretty safe. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a30fbcdd9f..cf0088e73e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,6 +136,9 @@ if (APPLE) set(TARGET_FLAGS "${TARGET_FLAGS} -mmacosx-version-min=${OSX_MIN_VERSION}") set(TARGET_FLAGS "${TARGET_FLAGS} -isysroot /Developer/SDKs/MacOSX10.6.sdk") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk") + # Do not warn about frameworks that are not available on all architectures. + # This avoids a warning when linking with QuickTime. + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_arch_warnings") # Specify target CPUs. set(TARGET_FLAGS "${TARGET_FLAGS} -Xarch_i386 -msse3") set(TARGET_FLAGS "${TARGET_FLAGS} -Xarch_i386 -march=prescott")