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
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