The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14428 
====================================================================== 
Reported By:                Rob Stewart
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14428
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-09-20 14:37 EDT
Last Modified:              2013-09-20 14:37 EDT
====================================================================== 
Summary:                    Enabling Verbose NMAKE Builds
Description: 
The current recommendation for verbose NMAKE builds, described at
http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F,
is unsatisfactory.  While I would prefer a better option, the following
variation of what appears in Windows.cmake would be much better:

<pre>
...
set(CMAKE_START_TEMP_FILE "")                                        # +
set(CMAKE_END_TEMP_FILE "")                                          # +

# 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" AND NOT CMAKE_VERBOSE_MAKEFILE) # +
  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" AND NOT CMAKE_VERBOSE_MAKEFILE)   # +
  set(CMAKE_START_TEMP_FILE "@<<\n")
  set(CMAKE_END_TEMP_FILE "\n<<")
endif()

include(Platform/WindowsPaths)
</pre>

That variation uses CMAKE_VERBOSE_MAKEFILE to control whether to use batch
files.

A better solution, I suspect, is to add conditional lines to the makefiles,
controlled by CMAKE_VERBOSE_MAKEFILE, that cat -- sorry, type -- the batch files
before running them.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-09-20 14:37 Rob Stewart    New Issue                                    
======================================================================

--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to