Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error: The source directory does not appear to contain CMakeLists.txt #9

Open
paldepind opened this issue Feb 26, 2014 · 3 comments

Comments

@paldepind
Copy link

It seems like the build files for glfw is not being pulled in properly.

simon@localhost:~/projects/rust-gamedev-kit$ ./build-libraries.sh 
++ dirname ./build-libraries.sh
+ cd .
++ pwd -P
+ RUST_GAMEDEV_KIT_ROOT=/home/simon/projects/rust-gamedev-kit
++ rustc -v
++ grep '^host:'
++ cut -d ' ' -f 2
+ TARGET=x86_64-unknown-linux-gnu
+ LIBDIR=/home/simon/projects/rust-gamedev-kit/install/lib/rustlib/x86_64-unknown-linux-gnu/lib
+ mkdir -p /home/simon/projects/rust-gamedev-kit/install/lib/rustlib/x86_64-unknown-linux-gnu/lib
+ set -eux
+ rm -rf glfw/build
+ mkdir glfw/build
+ cd glfw/build
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/simon/projects/rust-gamedev-kit/install -DBUILD_SHARED_LIBS:BOOL=ON -DGLFW_BUILD_EXAMPLES:BOOL=OFF -DGLFW_BUILD_TESTS:BOOL=OFF -DGLFW_BUILD_DOCS:BOOL=OFF ..
CMake Error: The source directory "/home/simon/projects/rust-gamedev-kit/glfw" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
@rlane
Copy link
Owner

rlane commented Feb 26, 2014

Does running git submodule update --init fix it?

@paldepind
Copy link
Author

Oops. I didn't know about Git submodules. Yes, that did indeed fix the issue.

But I get can't find crate for glfw when trying to compile cubeland. I don't know what to do about that.

@paldepind
Copy link
Author

I ended up doing ./build.sh instead and using the rustc one gets from that. Worked is expected 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants