Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Michael Jackson
Oops.. Nice Catch. I am going to hazard a guess and say that "Make" is running a new cmake instance with the install.cmake as its target script to run. This script will have NOTHING to do with the CMakeLists.txt file and therefor will have no idea about variables that are defined in the o

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Bill Hoffman
James C. Sutherland wrote: On Oct 2, 2009, at 8:20 AM, wrote: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING "test variable") INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake EXECUTE_PROCESS( COMMAND "/bin/echo" "--test=${TE

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread James C. Sutherland
On Oct 2, 2009, at 8:20 AM, wrote: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING "test variable") INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake EXECUTE_PROCESS( COMMAND "/bin/echo" "--test=${TESTVAR} --prefix=$ {CMAKE_I

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Michael Jackson
where is TESTVAR ever set? _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Oct 2, 2009, at 10:20 AM, merean..

[CMake] Variables in cmake-scripts

2009-10-02 Thread mereandor
Hi! I have a question regarding cmake-scripts: I have this simple example: CMakeLists.txt cmake_minimum_required(VERSION 2.6) SET(TEST CACHE STRING "test variable") INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/install.cmake) install.cmake EXECUTE_PROCESS( COMMAND "/bin/echo" "--