[CMake] Can CMake confgure shorter cmmand argments?

Bo Berglund bo.berglund at gmail.com
Wed Aug 7 19:04:05 EDT 2013


On Thu, 08 Aug 2013 00:55:05 +0200, Bo Berglund
<bo.berglund at gmail.com> wrote:

>On Tue, 06 Aug 2013 09:49:57 -0400, Bill Hoffman
><bill.hoffman at kitware.com> wrote:
>
>>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
>>

>>What generator are you using?
>>
>When I run CMake I select "Borland makefile" since I use C++Builder in
>XE4 (and BDS 2006, RAD Studio 2007)
>
>I had a look at the windows.cmake file as indicated above and mine has
>the same content as you quoted:
>
># 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()
>
>Either something needs to be done about this (what in that case?) or
>else the redirection toa response file does not work for all commands.
>I am getting this on a tlib command when the vtkhdf5.lib file is being
>manipulated.
>
>Could it be so that the CMake system is set up such that it redirects
>to a file for other commands but not for tlib???
>

Further:
I traced my way through a few .cmake files in Platform and found the
following in Windows-Embarcadero.cmake:

  # create a static library
  set(CMAKE_${lang}_CREATE_STATIC_LIBRARY
    "tlib ${CMAKE_START_TEMP_FILE}/p512 <LINK_FLAGS> /a
<TARGET_QUOTED> <OBJECTS>${CMAKE_END_TEMP_FILE}"
    )

I cannot claim that I understand what this does but it seems to refer
to the redirect settings shown above.
But maybe this is not activated for some reason?

Is there something to be done to activate it for the tlib command?


-- 
Bo Berglund
Developer in Sweden



More information about the CMake mailing list