I'm using CMake 3.3.2 on OS X Yosemite. If I put a framework path into include_directories
the generated Makefile doesn't include that directory. A short example:
cmake_minimum_required(VERSION 3.0)
project(testproj)
include_directories(/System/Library/Frameworks/OpenGL.framework)
add_library(testlib test.c)
The make output:
Scanning dependencies of target testlib
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/testlib.dir/build.make CMakeFiles/testlib.dir/build
[ 50%] Building C object CMakeFiles/testlib.dir/test.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -o CMakeFiles/testlib.dir/test.c.o -c /Users/wrar/test/test.c
I expected the include_directories
command to have an effect on the compiler line, and as the official OPENGL_INCLUDE_DIR
has the value I passed in the example, I expect it to be a correct value. What am I missing?