tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tsp-devel] Is cmake minimum required version 2.4.6 ?


From: Robert de Vries
Subject: Re: [Tsp-devel] Is cmake minimum required version 2.4.6 ?
Date: Fri, 02 Mar 2007 13:04:50 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20070102)

Frederik Deweerdt wrote:
On 2/17/07, Stephane GALLES <address@hidden> wrote:
Hi,

on my system, I can't build a fresh TSP check out with cmake 2.4.3
The cmake phase goes well, but the make phase immediatly ends with :

make: *** [cmake_check_build_system] Error 255

For the record, I've managed building with cmake 2.4.3 with the
following applied:
This is strange. The EXECUTE_PROCESS construct is used twice (once with --libs and once with --cflags). The first instance is replaced and the second one is left intact. How could this make a difference unless it masks a bug in cmake?
I have checked that EXECUTE_PROCESS is supported by cmake since 2.4.0.

   Robert
Index: make/FindXML2.cmake
===================================================================
RCS file: /sources/tsp/tsp/make/FindXML2.cmake,v
retrieving revision 1.3
diff -u -r1.3 FindXML2.cmake
--- make/FindXML2.cmake 24 Jan 2007 19:50:07 -0000      1.3
+++ make/FindXML2.cmake 2 Mar 2007 10:33:00 -0000
@@ -7,9 +7,9 @@
IF (XML2_CONFIG_PROGRAM)
MESSAGE(STATUS "Looking for xml2-config - found : ${XML2_CONFIG_PROGRAM}")
  SET(XML2_FOUND "YES")
-  EXECUTE_PROCESS(COMMAND ${XML2_CONFIG_PROGRAM} --libs
-                 OUTPUT_VARIABLE XML2_LIBRARY
-                 OUTPUT_STRIP_TRAILING_WHITESPACE)
+  EXEC_PROGRAM(${XML2_CONFIG_PROGRAM}
+              ARGS --libs
+              OUTPUT_VARIABLE XML2_LIBRARY)
  EXECUTE_PROCESS(COMMAND ${XML2_CONFIG_PROGRAM} --cflags
                 OUTPUT_VARIABLE XML2_CFLAGS
                 OUTPUT_STRIP_TRAILING_WHITESPACE)

Is it worth applying this workaround?
Fred


_______________________________________________
Tsp-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tsp-devel


--
Robert H. de Vries      mailto:address@hidden
AS&E/SW                     http://www.eurosim.nl
Dutch Space B.V.        http://www.dutchspace.nl
tel: (+31)71-5245464    fax: (+31)71-5245498





reply via email to

[Prev in Thread] Current Thread [Next in Thread]