[CMake] CMAKE 2.8.9, OS X 10.8 and OpenGL

Rolf Eike Beer eike at sf-mail.de
Wed Aug 15 17:55:12 EDT 2012


Jason T. Slack-Moehrle wrote:
> Hello All,
> 
> I am new to CMAKE and attempting to build an OpenGL app on OS X 10.8.
> (I will be using other platforms as well)
> 
> My CMakeLists.txt:
> 
> cmake_minimum_required (VERSION 2.8.9)
> 
> SET(CMAKE_C_COMPILER "clang")
> SET(CMAKE_CXX_COMPILER "clang++")

Don't do that. Set CC and CXX before calling CMake:

CC=clang CXX=clang++ cmake /path/to/source

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120815/d3eee7cb/attachment.pgp>


More information about the CMake mailing list