skaslev / gl3w

Simple OpenGL core profile loading
http://github.com/skaslev/gl3w
The Unlicense
709 stars 160 forks source link

cmake add_subdirectory error. #44

Closed natasanderson closed 7 years ago

natasanderson commented 7 years ago

Hi,

I'm building gl3w adding the following line to my CMakeLists.txt

add_subdirectory(gl3w)

but I've got the following error:

CMake Error: File /home/user/testdit/gl3w/cmake/Project-config.cmake does not exist. CMake Error at gl3w/CMakeLists.txt:65 (configure_file): configure_file Problem configuring file

I can reproduce the issue creating a directory tree like the following

testdir/gl3w testdir/CMakeLists.txt testdir/build

CMakeLists.txt has only one line add_subdirectory(gl3w)

from the build directory invoking cmake ..

will generate the error

Any idea on why this is happening?

I'm using cmake 3.7.1

Thanks a lot!