[Bf-blender-cvs] [3987389] master: Fix T48250: suppress CMake ranlib warnings to avoid issue with Qt Creator
Tianwei Shen
noreply at git.blender.org
Sat Apr 23 15:54:04 CEST 2016
Commit: 39873891bf6759eb5fcd6bfd7ed1aa762d8db398
Author: Tianwei Shen
Date: Sat Apr 23 15:44:26 2016 +0200
Branches: master
https://developer.blender.org/rB39873891bf6759eb5fcd6bfd7ed1aa762d8db398
Fix T48250: suppress CMake ranlib warnings to avoid issue with Qt Creator
Reviewed By: campbellbarton, brecht
Differential Revision: https://developer.blender.org/D1942
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f05e968..a924098 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 "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
+ SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
+ SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
+ SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
endif()
#-----------------------------------------------------------------------------
More information about the Bf-blender-cvs
mailing list