Previous Thread  Next Thread

chat icon cmake warning/error xcode4

rboerdijk

Posted: Fri Feb 17, 2012 10:35 pm
Joined: 28 Dec 2010
Posts: 6
I get the following warning when using cmake - any ideas on how to solve this?


-- Detecting CXX compiler ABI info - done
CMake Warning at CMakeLists.txt:252 (if):
given arguments:

"Unix Makefiles" "MATCHES" "Xcode" "AND" "(" "VERSION_EQUAL" "4" "OR" "VERSION_GREATER" "4" ")"

Unknown arguments specified


-- Performing Test SUPPORT_SSE_BUILD
Reply with quote


rboerdijk

Posted: Sat Feb 18, 2012 3:26 pm
Joined: 28 Dec 2010
Posts: 6
I got it to compile - for reference:
comment out the line with the "MATCHES" and a few lines lower the line with #endif. Now it will always use GCC - which is exactly what I want on my mac with xcode 4 installed. Cmake works again.

# if(${CMAKE_GENERATOR} MATCHES "Xcode" AND (${XCODE_VERSION} VERSION_EQUAL 4 OR ${XCODE_VERSION} VERSION_GREATER 4))
# Xcode 4 defaults to the Apple LLVM Compiler.
# Override the default compiler selection because Blender only compiles with gcc
set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")
message(STATUS "Setting compiler to: " ${CMAKE_XCODE_ATTRIBUTE_GCC_VERSION})
# endif()
Reply with quote


ldo

Posted: Wed Feb 22, 2012 4:08 am
Joined: 07 Nov 2010
Posts: 544
Why not submit a patch?
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group