|
|
@@ -126,8 +126,6 @@ include (CheckCompilerToolchain)
|
|
|
if (RPI AND NOT RPI_ABI STREQUAL RPI4)
|
|
|
# Extra linker flags for legacy Raspbian because it installs VideoCore libraries in the "/opt/vc/lib" directory (no harm in doing so for other distros)
|
|
|
set (INDIRECT_DEPS_EXE_LINKER_FLAGS "${INDIRECT_DEPS_EXE_LINKER_FLAGS} -Wl,-rpath-link,\"${CMAKE_SYSROOT}/opt/vc/lib\"") # CMAKE_SYSROOT is empty when not cross-compiling
|
|
|
-elseif (APPLE AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0.0)
|
|
|
- set (INDIRECT_DEPS_EXE_LINKER_FLAGS "${INDIRECT_DEPS_EXE_LINKER_FLAGS} -Wl,-no_weak_imports")
|
|
|
endif ()
|
|
|
if (ARM AND CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_CROSSCOMPILING AND CMAKE_LIBRARY_ARCHITECTURE)
|
|
|
# Check if the "cross" linker has already the library search path patched, see '129_multiarch_libpath.patch'
|
|
|
@@ -914,7 +912,10 @@ macro (define_dependency_libs TARGET)
|
|
|
endif ()
|
|
|
elseif (APPLE)
|
|
|
if (ARM)
|
|
|
- list (APPEND LIBS "-framework AudioToolbox" "-framework AVFoundation" "-framework CoreAudio" "-framework CoreBluetooth" "-framework CoreGraphics" "-framework CoreMotion" "-framework Foundation" "-framework GameController" "-framework OpenGLES" "-framework QuartzCore" "-framework UIKit")
|
|
|
+ list (APPEND LIBS "-framework AudioToolbox" "-framework AVFoundation" "-framework CoreAudio" "-framework CoreBluetooth" "-framework CoreGraphics" "-framework Foundation" "-framework GameController" "-framework OpenGLES" "-framework QuartzCore" "-framework UIKit")
|
|
|
+ if (NOT TVOS)
|
|
|
+ list (APPEND LIBS "-framework CoreMotion")
|
|
|
+ endif ()
|
|
|
else ()
|
|
|
list (APPEND LIBS "-framework AudioToolbox" "-framework Carbon" "-framework Cocoa" "-framework CoreFoundation" "-framework SystemConfiguration" "-framework CoreAudio" "-framework CoreBluetooth" "-framework CoreServices" "-framework CoreVideo" "-framework ForceFeedback" "-framework IOKit" "-framework OpenGL")
|
|
|
endif ()
|