On Tue, Jan 31, 2012 at 5:04 PM, Bill Hoffman <bill.hoff...@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
--

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