I'm having problems setting variables in my CMakeLists.txt files.
Specifically, the following two lines have absolutely no effect, regardless
of what values I give them:
SET (CMAKE_VERBOSE_MAKEFILE ON)
SET (CMAKE_USE_RELATIVE_PATHS ON)
Note: I've also tried TRUE and YES instead of ON.
Here's what my project looks like.
project
|
+--- src <- contains CMakeLists.txt
|
+--- build <- cmake ../src ; make
Here are the commands that I use to build my code. Note: I remove the cache
completely using 'rm -f -r'.
> cd build
> rm -f -r *
> cmake ../src or cmake -LA ../src
> make
The absolute pathnames are particularly problematic because I use the C
"__FILE__" macro for logging (the absolute pathnames are too long).
Does anyone know what I need to do to set those two variables?
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake