[CMake] 'Parallel' CMakeLists.txt?

Nicolas Desprès nicolas.despres at gmail.com
Tue Jan 31 13:59:59 EST 2012


On Tue, Jan 31, 2012 at 5:04 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 1/31/2012 10:55 AM, Nicolas Desprès wrote:
>
>>
>> Brad,
>>
>> All these considerations are important but maybe we could just do
>> first the easy path which is: add a -f option which change the default
>> name every where, for all sub-directories, try_compile, etc...
>>
>
> Changing for try_compile is going to be a nightmare of sorts...  There are
> modules like this:
>
> CheckFortran.cmake:  file(WRITE
> "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CheckFortran/CMakeLists.txt"
>
> FindSDL_sound.cmake:   FILE(WRITE
> ${PROJECT_BINARY_DIR}/CMakeTmp/CMakeLists.txt
>
> Basically, the concern is this will be hard to test and likely to break
> complex projects, and will end up being a half implemented feature.

Indeed. So a cache variable containing the file name would be
required. Ok, it's gonna be a nightmare.

-- 
Nicolas Desprès


More information about the CMake mailing list