Hello, This problem happens when I need to use ${CMAKE_CURRENT_SOURCE_DIR} inside a script, but for an out-of-source build. When echoed from the CMakeLists.txt file, it outputs the right value (i.e., the source folder) However, when echoed from inside the script, it outputs the build folder name (source folder/build). Attached is a "Hello World" project that reproduces the bug (if it's really a bug) - could anyone please verify it? CMake version is 2.4.6.
Also, does anyone have a suggestion of a workaround for it? thanks, -- Bruno Nery
cmake-bug.tgz
Description: GNU Zip compressed data
_______________________________________________ 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