[CMake] CMAKE 2.8.9 not observing CMAKE_FILES_DIRECTORY?

Jason T. Slack-Moehrle slackmoehrle at gmail.com
Fri Aug 24 10:18:19 EDT 2012


Hi Eric,

>> OS X 10.8, CMAKE 2.8.9.
>>
>> In CMAKE 2.8.9 it seems that CMAKE_FILES_DIRECTORY
>>
>> SET( PROJECT_BINARY_DIR "." )
>> SET( CMAKE_FILES_DIRECTORY  ${PROJECT_BINARY_DIR}/output/CMakeFiles )
>> SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )
>>
>> I dont see an 'output/CMakeFiles' created but I do see a 'bin' where
>> my executable is put.

> What makes you think that "PROJECT_BINARY_DIR" or
> "CMAKE_FILES_DIRECTORY" may be modified?

Ah, well, I had no idea that it was a read-only variable.

So how do people move the location of CMakeFiles and the cache, etc
away from the root? I dont want all the clutter there...

-Jason


More information about the CMake mailing list