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,
and define the variable, the find script locates the necessary path/items
and this value is populated in the CMakeCache file.    In the CMakeCache
file my variable is listed as

CODE_BUILD_DIR:PATH=C:/builddir/Win64/VC10/bin/Release

However ,when I go to the command line and try to pass the needed
build parameter via the command line, my value is not getting picked up and
so my solution does not get generated.   In order to get my solution I must
have this variable defined.

>From the build directory where I am trying to complete the build I execute
the following command:

cmake -G "Visual Studio 10 Win64"
-DCODE_BUILD_DIR:PATH=C:/builddir/Win64/VC10/bin/Release c:\mysource

The variable CODE_BUILD_DIR int he above line is the first build directory
for another code base that my current code is dependent on.

I have tried several variations of this command line option and passing the
-D variable, with and without escaping my path, however I am not having any
success.   Without this parameter defined,* *I am unable to locate the
necessary libraries that I must use to link into my current code.

I am thinking that I am possibly missing something in my find script, or
maybe I'm not escaping the characters in my path correctly.

Does anyone have any suggestions?

Thanks
--

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

Reply via email to