On Thu, May 28, 2009 at 11:49 PM, Shane Kerns <[email protected]> wrote: > Sorry for this noob like question but where are the variables like > WT_SOURCE_DIR
It's defined implicitly by CMake. When you do PROJECT( WT ), CMake creates two variables: - WT_SOURCE_DIR, which is the directory containing the CMakeLists.txt file where you have the PROJECT( WT ) directive - WT_BINARY_DIR, which is the directory which corresponds to the WT_SOURCE_DIR in the build directory (CMake creates in the build directory the same hierarchy you have in the source directory) >, CMAKE_INSTALL_PREFIX Internal to CMake >, EXAMPLES_CONNECTOR, In the main CMakeLists.txt: SET(EXAMPLES_CONNECTOR wthttp CACHE STRING "Connector used for examples") > BOOST_INCLUDE_DIRS It's not defined anywhere. It's used by the Asio and the Boost finders to search in non-standard paths. If you have Boost installed in a non-standard path, you would define BOOST_INCLUDE_DIRS when you invoke CMake: cmake -DBOOST_INCLUDE_DIRS=/path/to/my/boost/installation > . This is by no means an exhaustive list but I did a > grep on the entire root wt directory and could not understand how the > CMakeCache.txt is able to recognize those variables given that the > CMakeCache.txt is actually a generated file. You should read at least the first 20-30 slides in my CMake tutorial: http://www.elpauer.org/stuff/learning_cmake.pdf -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
