[cmake-developers] cmake selftest use different compiler and binutils as configured on Darwin

Claus Klein claus.klein at arcormail.de
Sun Jul 8 16:38:39 EDT 2012


The only way I found to control which compiler is used while run ctest  
is over the environment:

export MAKECOMMAND=/usr/local/bin/ninja
export PATH=/Developer/usr/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ 
local/bin:/usr/X11/bin
export CC="/opt/local/libexec/ccache/gcc-4.0"
export CXX="/opt/local/libexec/ccache/g++-4.0"
/usr/local/bin/cmake -G "Ninja" -DCMAKE_TEST_GENERATOR:STRING="Ninja" \
     -DCMAKE_MAKE_PROGRAM:FILEPATH="${MAKECOMMAND}" \
     -DCMAKE_TEST_MAKEPROGRAM:FILEPATH="${MAKECOMMAND}" - 
DCMAKE_ENABLE_NINJA:BOOL="ON" \
     -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} \
     -DCMAKE_LINKER:FILEPATH=/usr/bin/ld \
     -DCMAKE_AR:FILEPATH=/usr/bin/ar \
     -DCMAKE_RANLIB:FILEPATH=/usr/bin/ranlib \
     -DMAKECOMMAND:STRING="${MAKECOMMAND}" \
     ../cmake

And still there is the question how to prevent the run of Architecture  
and ObjC++ tests when I use the mac port gcc-4.7?

The following tests FAILED:
	 58 - Architecture (Failed)
	130 - ObjC++ (Failed)

On 08.07.2012, at 12:04, Claus Klein wrote:

>
> On 07.07.2012, at 21:34, Nicolas Desprès wrote:
>
>> I advice you to install the Apple command line tools for xcode and
>> stop to use gcc.
>
> I have removed the path to /opt/local/bin and tested xcode without  
> ninja:
> http://open.cdash.org/viewTest.php?onlyfailed&buildid=2423850
>
> It is not clear to me what is intended with cmake selftest?
>
>  * If Xcode generator is selected, sure the Bundle and other Xcode  
> test should run
>
>  * If I configure a different tool chain, i.e. mac port gcc-4.7 with  
> all tool under /opt/local/bin,
> 	it is an ERROR to run Bundle, Architecture, and ObjC++ tests!
>
> Perhaps I must set a different CMAKE_SYSTEM_NAME, but which one?
>
> #FIXME   -DCMAKE_SYSTEM_NAME=Darwin-GNU \
>  -DCMAKE_C_COMPILER=/opt/local/libexec/ccache/gcc \
>  -DCMAKE_CXX_COMPILER=/opt/local/libexec/ccache/g++ \
>
> IMO it is a use case like cross compiling!
> I need a chance to control what happens.
>
> Claus
>
> --
>
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120708/0ef49b38/attachment.html>


More information about the cmake-developers mailing list