Re: [CMake] Command line cmake not picking up variable that gets picked up in the GUI

2012-12-02 Thread Yuri Timenkov
You should put this variable into cache one way or another. (e.g. explicitly set with CACHE option or use in some find_* command). The most straight-forward approach is to add to your CMakeLists.txtsomething like: set(CODE_BUILD_DIR "${CODE_BUILD_DIR}" CACHE PATH "Path to CODE package") But bewar

[CMake] Command line cmake not picking up variable that gets picked up in the GUI

2012-11-29 Thread katie outram
I am trying to automate my build process and before going down this path, I set up findMYCODE script that requires a variable CODE_BUILD_DIR that the user defines.This variable is the build directory for another code base that my current code base is dependent on. When I run CMAKE in the gui