Hi,

I need to read content of some file from source tree during initial cache phase.
I'm trying to find out which variables are available at that early stage of 
project
configuration, or otherwise how to put path in this file.

I'm trying with following variables:
        CMAKE_BINARY_DIR
        CMAKE_CURRENT_BINARY_DIR
        CMAKE_CURRENT_LIST_DIR
        CMAKE_CURRENT_LIST_FILE
        CMAKE_CURRENT_SOURCE_DIR
        CMAKE_HOME_DIRECTORY
        CMAKE_SOURCE_DIR

But most of those, with the exception of *_LIST_* seems to be either empty or 
pointing
to build dir.

Also, it seems that some of those (especially CMAKE_HOME_DIRECTORY) are either 
set or
unset (randomly) when I try to configure project multiple times.


Best regards
BlessJah

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to