[CMake] Can CMake confgure shorter cmmand argments?

Bill Hoffman bill.hoffman at kitware.com
Tue Aug 6 09:49:57 EDT 2013


On 8/6/2013 1:59 AM, Rolf Eike Beer wrote:
>> And specifically HOW one can tell CMake to do this?
> They are obviously not implemented in CMake for this compiler. So one needs to
> do that.

The file to look at is Modules/Platform/Windows.cmake

It currently has this:

# for borland make long command lines are redirected to a file
# with the following syntax, see Windows-bcc32.cmake for use
if(CMAKE_GENERATOR MATCHES "Borland")
   set(CMAKE_START_TEMP_FILE "@&&|\n")
   set(CMAKE_END_TEMP_FILE "\n|")
endif()

# for nmake make long command lines are redirected to a file
# with the following syntax, see Windows-bcc32.cmake for use
if(CMAKE_GENERATOR MATCHES "NMake")
   set(CMAKE_START_TEMP_FILE "@<<\n")
   set(CMAKE_END_TEMP_FILE "\n<<")
endif()


What generator are you using?


-Bill



More information about the CMake mailing list