diff --git a/CMakeLists.txt b/CMakeLists.txt index f05e9680c0a..a924098b85a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2319,6 +2319,12 @@ elseif(APPLE) endif() # Get rid of eventually clashes, we export some symbols explicite as local set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Xlinker -unexported_symbols_list -Xlinker ${CMAKE_SOURCE_DIR}/source/creator/osx_locals.map") + + # Suppress ranlib "has no symbols" warnings + SET(CMAKE_C_ARCHIVE_CREATE " Scr ") + SET(CMAKE_CXX_ARCHIVE_CREATE " Scr ") + SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") + SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") endif() #-----------------------------------------------------------------------------