[CMake] OSX framework include is not included
Martin Costabel
costabel at wanadoo.fr
Sat Jul 10 03:28:45 EDT 2010
Gregory Sharp wrote:
>
> 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.
The question is, does it work? If you use #include <OpenCL/opencl.h>, it
will work without -I nor -F. So, nothing wrong, most likely.
--
Martin
More information about the CMake
mailing list