All,
Oh, umm, wait. How do I specify the 10.4 Universal SDK? Maybe that is
it where I specify it on XCode, but I see nothing in my CMake file
that would select a particular SDK so would it be using 10.5
automatically? How does CMake decide this?
Which would make Michael right that maybe this was introduced in 105.
Sorry for top posting, I thought it might be easier for the way the
thread is going.
Thoughts?
-Jason
On Aug 8, 2009, at 7:05 AM, ML wrote:
Michael,
find_library(CARBON NAMES Carbon)
add_executable(foo foo.cxx)
target_link_libraries(foo ${CARBON})
If I do this, I get my compile errors referencing lack of Carbon
Framework like:
In file included from /Volumes/Data/jtsm/Checkout/Universal GUI/
source/thirdparty/OSX/MoreFilesX/MoreFilesX.c:82:
/Volumes/Data/jtsm/Checkout/Universal GUI/source/thirdparty/OSX/
MoreFilesX/MoreFilesX.h:1494: error: conflicting types for
‘FSVolumeMount’
/System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Files.h:7323: error: previous
declaration of ‘FSVolumeMount’ was here
This is a compile error, and has nothing to do with linking.
Problem is, you have FSVolumeMount declared in thirdparty/OSX/
MoreFilesX/MoreFilesX.c, which, however, is also a function in
Carbon. So you have simple name clash. The issue you are facing
might be that FSVolumeMount was introduced in Mac OSX 10.5, and the
clash didn't happen on 10.4.
But It works in XCode just fine, same code, nothing changed. I will
send you the example I am trying to move to CMake so that you an see
it. Maybe I am missing something being set in CMake to make it work.
-Jason
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake