[Cmake] CMAKE_BUILD_TOOL / ignoring make errors

Bernhard Zach bzach at hyperwave.com
Thu Aug 12 03:24:43 EDT 2004


You're right.
I was confused in my own scripts which starts the build process.
I'm really sorry.

Thank you very much,
Bernhard

-----Original Message-----
From: cmake-bounces at www.cmake.org [mailto:cmake-bounces at www.cmake.org] On
Behalf Of William A. Hoffman
Sent: Tuesday, August 10, 2004 7:45 PM
To: Bernhard Zach; cmake at www.cmake.org
Subject: RE: [Cmake] CMAKE_BUILD_TOOL / ignoring make errors

It seems to work with the nmake that I have??
If I run nmake /i from the command line, then it continues on error.

-Bill



At 12:43 PM 8/10/2004, Bernhard Zach wrote:
>Hi Bill,
>
>No, I mean a regular build with subdirectories (after the configure step)
>not ctest.
>
>A "MAKECOMMAND"-Cache entry didn't work on my machine. (Windows, cmake
>2.1.0, source from today))
>
>The whole build aborts if one subdir has an error, even if other subdirs
>would compile successfully.
>
>I try to explain it more detailed:
>My Makefile in a subdirectory looks like this:
>------------
>default_target: d:\localbuild\project\lib1\cmake.check_cache
>        $(MAKE) $(MAKESILENT) cmake.depends
>        $(MAKE) $(MAKESILENT) cmake.check_depends
>        $(MAKE) $(MAKESILENT) -f cmake.check_depends
>        $(MAKE) $(MAKESILENT) -$(MAKEFLAGS) all
>------------
>
>
>The output building the target "all" is like:
>------------
>        nmake /nologo -L                  all
>Building object file lib1source.obj...
>        cl  @c:\DOCUME~1\bzach\LOCALS~1\Temp\nm47D.tmp
>lib1source.cxx
>d:\localbuild\project\lib1\lib1source.cxx(19) : error C2143: ...
>NMAKE : fatal error U1077: 'cl' : return code '0x2'
>Stop.
>NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio .NET
>2003\VC7\BIN\nmake.exe"' : return code '0x2'
>Stop.
>NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio .NET
>2003\VC7\BIN\nmake.exe"' : return code '0x2'
>Stop.
>------------
>
>I think MAKEFLAGS is also not the correct one, because the Makefile on
Linux
>looks like this:
>------------
>default_target: /usr2/project/lib1/cmake.check_cache
>        $(MAKE) $(MAKESILENT) cmake.depends
>        $(MAKE) $(MAKESILENT) cmake.check_depends
>        $(MAKE) $(MAKESILENT) -f cmake.check_depends
>        $(MAKE) $(MAKESILENT) all
>------------
>
>
>Thanks,
>Bernhard
>
>
>
>
>-----Original Message-----
>From: cmake-bounces at www.cmake.org [mailto:cmake-bounces at www.cmake.org] On
>Behalf Of William A. Hoffman
>Sent: Tuesday, August 10, 2004 5:22 PM
>To: Bernhard Zach; cmake at www.cmake.org
>Subject: Re: [Cmake] CMAKE_BUILD_TOOL / ignoring make errors
>
>I am a bit confused.  CMake does not do the building.  CMake only creates
>the build files.  If you are talking about ctest. The cache value
>that you want to set is MAKECOMMAND:
>
>//Command used to build entire project from the command line.
>MAKECOMMAND:STRING=nmake -i
>
>-Bill
>
>
>At 10:30 AM 8/10/2004, Bernhard Zach wrote:
>>Hi!
>>
>>I want to compile through my whole source tree, even if one directory has
a
>>compile error.
>>
>>I tried to use (under Windows) to set the CMAKE_BUILD_TOOL Value to "nmake
>>/I", but it seamed to be ignored on the compile.
>>
>>Is there another place configuring the make/nmake command? (-i for gnu
>make)
>>
>>Cool would be a CMAKE_IGNORE_BUILD_ERRORS Flag.
>>
>>Thank you,
>>Bernhard
>>
>>_______________________________________________
>>Cmake mailing list
>>Cmake at www.cmake.org
>>http://www.cmake.org/mailman/listinfo/cmake 
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Cmake mailing list
Cmake at www.cmake.org
http://www.cmake.org/mailman/listinfo/cmake



More information about the Cmake mailing list