Hi,
How do I make cmake to use environment variable?
My context is that I want to have environment variable that represent my svn
ROOT PATH (developer ENV.) and my open embedded path (in case of cross
compiling). What's the best way to have something reusable for each developer?
EX:
SOMEWHERE on my HD:
SVN_ROOT_PATH
Project
trunk
Config
Config-Generic-cache.txt #ARCH, COMPILER,
FLAGS, build type
Config-Project-specific-cache.txt # COMPILATION
PROJECT SPECIFIC
CMakeLists.txt
build
SOMEWHERE else on my HD:
OE_PATH
So for now I do this and hardcode the SVN_ROOT_PATH in Config-Generic-cache.txt:
cd SVN_ROOT_PATH/Project/trunk/build
cmake -DCMAKE_SYSTEM_PROCESSOR:STRING=x86_64 -DCMAKE_BUILD_TYPE:STRING=debug -C
../Config/Config-Generic-cache.txt ../
Any suggestion to add the SVN_ROOT_PATH, best solution / best practice?
Best Regards
Kevyn-Alexandre
_______________________________________________
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