mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-17 12:00:58 +02:00
cmake: Suppress duplicated libraries warnings
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2679>
This commit is contained in:
1 parent
c8da4bc192
commit
fa9df442c6
1 file changed
+7
@@ -38,6 +38,13 @@ if(NOT WIN32 AND NOT APPLE)
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
# Suppress warnings about duplicate libraries in the link line.
|
||||
# This happens because CMake's transitive dependency handling can
|
||||
# result in the same static library appearing multiple times.
|
||||
add_link_options("-Wl,-no_warn_duplicate_libraries")
|
||||
endif()
|
||||
|
||||
# Must call before adding targets that will use xrt-optimized-math
|
||||
macro(xrt_optimized_math_flags)
|
||||
if(MSVC)
|
||||
|
||||
Reference in new issue
Block a user