[CMake] newbie - VC++ external link dependency

2008-07-15 Thread Jack Andrews
hi guys, i've got a small library (portlib) that does things including sockets on linux and windows. my problem is that many executables depend on this library and it seems that for every executable i also have to add IF(WIN32) LINK_LIBRARIES(wsock32 ws2_32 portlib) ENDIF(WIN32) that is, on

[CMake] Help with Execute_Process

2008-07-15 Thread Carminati Federico
Hello, I would like to execute the following command Execute_Process( COMMAND svn info | grep \Last Changed Rev:\ | cut -d: -f2 OUTPUT_VARIABLE _res) But concatenation with pipes does not work. Any hint? Best regards, Federico Carminati CERN-PH 1211 Geneva 23 Switzerland Tel: +41 22 76

Re: [CMake] Three short questions...

2008-07-15 Thread Philip Lowman
On Tue, Jul 15, 2008 at 4:17 AM, Hauke Heibel [EMAIL PROTECTED] wrote: Hi there, I've stumbled over three little questions which I could not answer from the FAQs nor the CMake documentation or the Wiki. Maybe one of the specialists can help me out... The first question is whether it is

[CMake] Problems generating Xcode projects

2008-07-15 Thread Carminati Federico
Hello, I am trying to generate an Xcode project. I have cmake 2.6 Xcode 3.0 Mac OS X 10.5.4 When I try to open the project with Xcode I have Project /Users/fca/AliCmake/NewIO/xcode_dir/AliRoot.xcodeproj cannot be opened because the project file cannot be parsed. Any hint? Best,

[CMake] cpack_install_cmake_projects options?

2008-07-15 Thread dean.inglis
I am trying to use CPack to install a simple windows command line exe that links to 3 dll's: TeneosCommon.dll, vtkCommon.dll, vtksys.dll, where Teneos is a 3rd party source that compiles against VTK, ITK, Gdcm and KWWidgets. Currently, my TeneosCPack.cmake file has SET(

[CMake] Fw: Re: Problems generating Xcode projects

2008-07-15 Thread Samuel Crow
--- On Tue, 7/15/08, Samuel Crow [EMAIL PROTECTED] wrote: From: Samuel Crow [EMAIL PROTECTED] Subject: Re: [CMake] Problems generating Xcode projects To: Carminati Federico [EMAIL PROTECTED] Date: Tuesday, July 15, 2008, 1:31 PM Hello Federico, I've had the same problems. When it did

Re: [CMake] Fw: Re: Problems generating Xcode projects

2008-07-15 Thread Bill Hoffman
Samuel Crow wrote: --- On Tue, 7/15/08, Samuel Crow [EMAIL PROTECTED] wrote: From: Samuel Crow [EMAIL PROTECTED] Subject: Re: [CMake] Problems generating Xcode projects To: Carminati Federico [EMAIL PROTECTED] Date: Tuesday, July 15, 2008, 1:31 PM Hello Federico, I've had the same problems.

Re: [CMake] Fw: Re: Problems generating Xcode projects

2008-07-15 Thread Kai Sterker
On Tue, Jul 15, 2008 at 3:33 PM, Samuel Crow I've had the same problems. I used to have problems with incorrect quoting in connection with ADD_DEFINITIONS in CMake prior to 2.6. If your CMakeLists.txt files had been written to work around this issue in 2.4, they might be broken with 2.6. I put

[CMake] Problem with Xcode... solved?

2008-07-15 Thread Carminati Federico
Hello, following my previous posting, I have identified the problem with Xcode generation. The following CMakeList.txt would generate correct Unix Makefiles but wrong Xcode project Project(Test) Cmake_Minimum_Required(VERSION 2.6) Set(CMAKE_VERBOSE_MAKEFILE ON)

[CMake] Using try_compile before project() command

2008-07-15 Thread Yuri Timenkov
I want to tune initial compile and linker flags to put into cache. in main CMakeLists.txt: # Override default Compiler flags set(CMAKE_USER_MAKE_RULES_OVERRIDE MyCompilerFlags) project(MyProject) in MyCompilerFlags.cmake: check_cxx_linker_flag(-Wl,--warn-unresolved-symbols

Re: [CMake] Problem with Xcode... solved?

2008-07-15 Thread Bill Hoffman
Carminati Federico wrote: Hello, following my previous posting, I have identified the problem with Xcode generation. The following CMakeList.txt would generate correct Unix Makefiles but wrong Xcode project Project(Test) Cmake_Minimum_Required(VERSION 2.6) Set(CMAKE_VERBOSE_MAKEFILE ON)

Re: [CMake] Problem with Xcode... solved?

2008-07-15 Thread Bill Hoffman
Carminati Federico wrote: Hello Bill, thanks a lot for your answer. I have few more questions: 1. I am running some custom commands in the makefile. Of course Xcode does not have hte path. Should I quote them with the full path or can I indicate a path to xcode via cmake? I am not sure

Re: [CMake] Problem with Xcode... solved?

2008-07-15 Thread Carminati Federico
Hello Bill, See below Federico Carminati CERN-PH 1211 Geneva 23 Switzerland Tel: +41 22 76 74959 Fax: +41 22 76 79480 Mobile: +41 76 487 4843 On 15 Jul 2008, at 16:30, Bill Hoffman wrote: Carminati Federico wrote: Hello Bill, thanks a lot for your answer. I have few more questions: 1. I

Re: [CMake] Three short questions...

2008-07-15 Thread Hauke Heibel
Hi again, first of all, thanks for the quick answer. Actually all of the requests were merely taste related. I admit that this is not really important but from time to time I am looking at the libraries and includes I am using and then I like it, if they are nicely formatted or as short as

[CMake] Error with Unix Makefiles under UWIN

2008-07-15 Thread Mike Jackson
I know UWIN probably is NOT supported but hey I'll give it a shot. This is on WinXP, cmake 2.4.8, Visual Studio 2003.Net. It seems cmake successfully ran under UWIN generating Unix Makefiles. I have a simple project (expat actually) that generates a library (expat) and an executable

Re: [CMake] Problem with Xcode... solved?

2008-07-15 Thread Bill Hoffman
Carminati Federico wrote: As part of my make process I am running a custom program that usually is in my path in a non-standard directory. When I try building the target with Xcode, the PATH variable is not affected by my shell settings, and it default to the standard on my machine. This does

Re: [CMake] Problem with Xcode... solved?

2008-07-15 Thread Carminati Federico
Dear Bill, this works, however this program loads shared libs supposed to be in a directory pointed to by DYLD_LIBRARY_PATH, so it fails to load. Any idea? Best regards, Federico Carminati CERN-PH 1211 Geneva 23 Switzerland Tel: +41 22 76 74959 Fax: +41 22 76 79480 Mobile: +41 76 487 4843

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Carminati Federico
Hello Yuri, I posted a similar question some time ago. There seems to be no way to chose the compiler within the CMakeList.txt, because you can do very little before the Project command, and afterwards it is too late. Anybody can help here? best, regards, Federico Carminati CERN-PH 1211

Re: [CMake] Problem with Xcode... solved?

2008-07-15 Thread Bill Hoffman
Carminati Federico wrote: Dear Bill, this works, however this program loads shared libs supposed to be in a directory pointed to by DYLD_LIBRARY_PATH, so it fails to load. Any idea? Best regards, Build the program so that it uses built in run-time paths. The only other option is to run

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Bill Hoffman
Carminati Federico wrote: Hello Yuri, I posted a similar question some time ago. There seems to be no way to chose the compiler within the CMakeList.txt, because you can do very little before the Project command, and afterwards it is too late. Anybody can help here? best, regards, That

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Bill Hoffman
Carminati Federico wrote: Any hope to have this changed in a future release? Best regards, No, it really is out of the work flow of CMake. First you find the working compiler and test it. The CMakeLists.txt files should never force a compiler choice. They should be compiler agnostic as

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Yuri Timenkov
On Tuesday 15 July 2008 20:01:52 Bill Hoffman wrote: Carminati Federico wrote: Hello Yuri, I posted a similar question some time ago. There seems to be no way to chose the compiler within the CMakeList.txt, because you can do very little before the Project command, and afterwards it is

[CMake] CMAKE_CXX_COMPILER and the cache

2008-07-15 Thread Fernando Cacciola
Hi people, I'm trying to understand a user report which says that load_cache ignores CMAKE_CXX_COMPILER (and I need it to load it!!) While playing around with this unfortunate fact, it became apparent that this particular variable is not read from the cache at all (not even from the current

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Yuri Timenkov
On Tuesday 15 July 2008 20:28:27 Yuri Timenkov wrote: On Tuesday 15 July 2008 20:01:52 Bill Hoffman wrote: Carminati Federico wrote: Hello Yuri, I posted a similar question some time ago. There seems to be no way to chose the compiler within the CMakeList.txt, because you can do

[CMake] Error removing temporary files with CMake on VS2003.Net, WinXP

2008-07-15 Thread Mike Jackson
I am using CMake 2.4.8 on WinXP generating VS2003.Net project files. During cmake time (using the CMakeSetup.exe program) I will get errors that basically say that cmake could not remove temporary files due to permissions. This leads to all sorts of other problems after cmake is run. The

[CMake] CTest, CVS and ssh keys

2008-07-15 Thread woofton_9
-- Detecting CXX compiler ABI info - done -- Found wxWidgets: TRUE -- Configuring done -- Generating done -- Build files have been written to: D:/Programming/Build/Test/NIREP Site: karachi Build name: Win32-XP-vs8-Debug Create new tag: 20080715-1754 - Continuous Start processing tests Updating

[CMake] how to make OpenGTL rpm?

2008-07-15 Thread Matthew Woehlke
I'm trying to build an rpm of OpenGTL, with no success. I added 'set(CPACK_GENERATOR TGZ;RPM)' and 'include(CPack)' to the CMakeLists.txt, but when I try to build the RPM, it wants to write to /usr (ah, shouldn't rpm building NOT need to install first?!), and if I run it as root, it installs

Re: [CMake] Help with Execute_Process

2008-07-15 Thread Alan W. Irwin
On 2008-07-15 13:10+0200 Carminati Federico wrote: Hello, I would like to execute the following command Execute_Process( COMMAND svn info | grep \Last Changed Rev:\ | cut -d: -f2 OUTPUT_VARIABLE _res) But concatenation with pipes does not work. Any hint? Best regards, I haven't tried

Re: [CMake] Help with Execute_Process

2008-07-15 Thread Bill Hoffman
Alan W. Irwin wrote: On 2008-07-15 13:10+0200 Carminati Federico wrote: Hello, I would like to execute the following command Execute_Process( COMMAND svn info | grep \Last Changed Rev:\ | cut -d: -f2 OUTPUT_VARIABLE _res) But concatenation with pipes does not work. Any hint? Best

Re: [CMake] how to make OpenGTL rpm?

2008-07-15 Thread Eric Noulard
2008/7/15 Matthew Woehlke [EMAIL PROTECTED]: I'm trying to build an rpm of OpenGTL, with no success. I added 'set(CPACK_GENERATOR TGZ;RPM)' and 'include(CPack)' to the CMakeLists.txt, but when I try to build the RPM, it wants to write to /usr (ah, shouldn't rpm building NOT need to install

[CMake] Sending Swig options to compiler

2008-07-15 Thread Gerrick Bivins
Hello, I¹m trying to add an extra option to the swig compile line (-package packagename) while generating java wrappers for my project. I¹m running into a problem when using: SET(PACKAGE_NAME test) SET_SOURCE_FILES_PROPERTIES( ${INTERFACE_FILES} PROPERTIES CPLUSPLUS ON ) SET( CMAKE_SWIG_FLAGS

Re: [CMake] Sending Swig options to compiler

2008-07-15 Thread Alan W. Irwin
On 2008-07-15 15:49-0500 Gerrick Bivins wrote: Hello, I�m trying to add an extra option to the swig compile line (-package packagename) while generating java wrappers for my project. I�m running into a problem when using: SET(PACKAGE_NAME test) SET_SOURCE_FILES_PROPERTIES( ${INTERFACE_FILES}

Re: [CMake] Sending Swig options to compiler

2008-07-15 Thread Gerrick Bivins
Perfect! Thanks Alan. Gerrick On 7/15/08 4:19 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2008-07-15 15:49-0500 Gerrick Bivins wrote: Hello, I�m trying to add an extra option to the swig compile line (-package packagename) while generating java wrappers for my project. I�m running into

Re: [CMake] CMake support for Python

2008-07-15 Thread Nicholas Yue
2008/7/10 Mathieu Malaterre [EMAIL PROTECTED]: You are missing the enable_testing() + include(CTest) thingy Thanks Mathieu, I have got the test and CDash submission working fine. However, I can't seem to get the ADD_PYTHON_COMPILEALL_TEST call working It needs a copy of compileall.py to work

Re: [CMake] how to make OpenGTL rpm?

2008-07-15 Thread Matthew Woehlke
Eric Noulard wrote: 2008/7/15 Matthew Woehlke [EMAIL PROTECTED]: I'm trying to build an rpm of OpenGTL, with no success. I added 'set(CPACK_GENERATOR TGZ;RPM)' and 'include(CPack)' to the CMakeLists.txt, but when I try to build the RPM, it wants to write to /usr (ah, shouldn't rpm building NOT

[CMake] trouble setting library output directoy

2008-07-15 Thread Christopher Harvey
Hi, I've got a root directory, say / and there is a CMakeLists.txt in it, that looks like this: CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(GlewMingW) #SET(CMAKE_VERBOSE_MAKEFILE TRUE) INCLUDE_DIRECTORIES(include) ADD_LIBRARY(glew STATIC src/glew.c) #ADD_EXECUTABLE(visualinfo

Re: [CMake] cmake 2.6.1 RC 8

2008-07-15 Thread Bill Hoffman
Reggie Burnett wrote: Any plans of a wix generator for cpack? None that I know of. What is wix? -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] trouble setting library output directoy

2008-07-15 Thread Mike Jackson
# -- Setup output Directories - SET (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/Bin CACHE PATH Single Directory for all Libraries ) This will effect all targets. -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jul

Re: [CMake] Three short questions...

2008-07-15 Thread Philip Lowman
On Tue, Jul 15, 2008 at 11:09 AM, Hauke Heibel [EMAIL PROTECTED] wrote: And the last question is, if it is possible to tell the FindQt.cmake script to give me the plain libraries without the full path of them being prepended (I am talking about the content of the QT_LIBRARIES variable). I