[CMake] OSX framework include is not included

Gregory Sharp gregsharp.geo at yahoo.com
Fri Jul 9 23:09:06 EDT 2010


Hi,

I can't seem to get OSX to include my framework directory.
Here is what my cmake file looks like:

  MESSAGE (STATUS "OPENCL_INCLUDE_DIR = ${OPENCL_INCLUDE_DIR}")
  INCLUDE_DIRECTORIES (${OPENCL_INCLUDE_DIR})
  ADD_EXECUTABLE(opencl_test opencl_test.cxx)
  TARGET_LINK_LIBRARIES(opencl_test ${OPENCL_LIBRARIES})

The message statement says this:

-- OPENCL_INCLUDE_DIR = /System/Library/Frameworks/OpenCL.framework

But the resulting g++ looks like this (no -I, no -F):

/usr/bin/c++     -o CMakeFiles/opencl_test.dir/opencl_test.cxx.o -c /Users/gsharp/work/test/opencl_test.cxx

Any ideas what is wrong?  This is CMake 2.8.1 on Darwin 10.4.0.

Thanks,
Greg Sharp
gregsharp at geocities.com


      



More information about the CMake mailing list