[CMake] Can CMake confgure shorter cmmand argments?

Bill Hoffman bill.hoffman at kitware.com
Fri Aug 9 09:30:36 EDT 2013


On 8/9/2013 2:06 AM, Bo Berglund wrote:

>> >You might get away with re-running cmake from the command line.
> I will try that when I have my test W7 PC on-line again. It has been
> hibernated to make room for other virtual machines I need...

cmake --trace in your existing tree should work.

>
>> >You could also just create a very simple project to make it easier.
> I have no knowledge of how CMake is set up or how to use it for a
> project other than the directions from the VTK project I am trying to
> build. VTK apparently contains what is needed to configure CMake usage
> within its sources.
> But I don't know how it works....
Create a CMakeLists.txt file with this:
add_library(foo foo.cxx)
Create an empty file called foo.cxx.

That should be simple enough.

>> >You could also add some message statements to print out the temp file
>> >variables in the project.
> Don't know how to do that....
Add this anywhere in a CMakelists.txt file:
message("${MAKE_START_TEMP_FILE} ${CMAKE_END_TEMP_FILE }")

-Bill



More information about the CMake mailing list