David Morris wrote:




searching for these terms on google always show me something that is Apple specific, and I found one old mailing list post about how CMake thinks I'm not compiling on a OS X anymore, and that I need to trick it into changing the compiler. I checked out my CMakeCache.txt file in my project directory, and I found these lines:

//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

I'm not sure if the CXX compiler is correct, or if it should be g++. I tried changing it there but it didn't go anything. Any ideas?
thanks for the help,
dave

You need to link in the mac frameworks, like this:
target_link_libraries(foo -framework Cocoa -framework Carbon)

-Bill

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to