Additional cmake command example

This commit is contained in:
HirotakaTakayama
2015-07-11 15:04:50 +09:00
parent dcec2aa0a3
commit 3d1eb87b4d
+4
View File
@@ -25,6 +25,10 @@ If any cmake project file changes, you can just run `cmake .. && cmake ..` to ge
If this by itself doesn't work, you may have to clean the cmake cache.
Use `rm -rf CMakeCache.txt CMakeScripts/ CMakeFiles/ cmake_install.txt` to do that, and then run the generator command again.
for example(Use Xcode):
$cmake -G Xcode .. && cmake ..
The reason for running cmake at least twice is to make sure that all of the variables get set up appropriately.
Environment variables can be modified at this stage. If you want to pass `-ggdb` or any other flag that is not set up by default,