Revision: 41420
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41420
Author:   campbellbarton
Date:     2011-11-01 00:34:09 +0000 (Tue, 01 Nov 2011)
Log Message:
-----------
hopefully fix problem with cmake on osx (older gcc version)

Modified Paths:
--------------
    trunk/blender/CMakeLists.txt
    trunk/blender/build_files/cmake/macros.cmake

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt        2011-10-31 17:00:59 UTC (rev 41419)
+++ trunk/blender/CMakeLists.txt        2011-11-01 00:34:09 UTC (rev 41420)
@@ -1255,6 +1255,8 @@
 
        # flags to undo strict flags
        ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS 
C_WARN_NO_DEPRECATED_DECLARATIONS -Wno-deprecated-declarations)
+       ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS 
C_WARN_NO_UNUSED_PARAMETER        -Wno-unused-parameter)
+       ADD_CHECK_C_COMPILER_FLAG(CC_REMOVE_STRICT_FLAGS 
C_WARN_NO_UNUSED_BUT_SET_VARIABLE -Wno-unused-but-set-variable)
 
 elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
 

Modified: trunk/blender/build_files/cmake/macros.cmake
===================================================================
--- trunk/blender/build_files/cmake/macros.cmake        2011-10-31 17:00:59 UTC 
(rev 41419)
+++ trunk/blender/build_files/cmake/macros.cmake        2011-11-01 00:34:09 UTC 
(rev 41420)
@@ -413,8 +413,7 @@
                remove_cc_flag("-Werror")
 
                # negate flags implied by '-Wall'
-               add_cc_flag("-Wno-unused-parameter")
-               add_cc_flag("-Wno-unused-but-set-variable")
+               add_cc_flag("${CC_REMOVE_STRICT_FLAGS}")
        endif()
 
        if(MSVC)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to