Re: [CMake] building executable from static libs

2006-10-11 Thread Brandon J. Van Every
Benjamin Roy wrote: And i try to avoid the step 3 and 4 in order to generate a make that build directly the executable after build static lib without re-run Cmake. I try few solution based on test with IF or SET_SOURCE_FILES_PROPERTIES(... GENERATED ) or try to use dependencies and ADD_CU

Re: [CMake] MACOSX_DEPLOYMENT_TARGET

2006-10-11 Thread William A. Hoffman
At 07:19 PM 10/11/2006, Axel Roebel wrote: >This is exactly what I do currently. >I thought there would may be exist an easier way. >I now see that my main problem is how I replace the compiler: > >I patch CMakeFiles/CMakeCCompiler.cmake >from within CMakeLists.txt, >while I probably should simply

Re: [CMake] MACOSX_DEPLOYMENT_TARGET

2006-10-11 Thread Axel Roebel
On Wednesday 11 October 2006 15:28, you wrote: > Axel Roebel wrote: > > The problem is that to my knowledge the only way to communicate the > > deployment target to gcc is via environment variables. I admit this is a > > really strange way (probably its save to say silly) to select compiler > > opt

Re: [CMake] Setting global link flags

2006-10-11 Thread Axel Roebel
On Wednesday 11 October 2006 15:24, you wrote: > Axel Roebel wrote: > > I frequently struggle with the problem to set > > global linker flags. Global here means these flags should be used > > whenever the linker is used. The main example where I need that > > is the -mno-cygwin flag of the cygwin c

Re: [CMake] Crash in ComputeLinkInformation: cmTarget::GetDirectory returns NULL for UTILITY type

2006-10-11 Thread Eran Guendelman
William A. Hoffman wrote: At 05:11 PM 10/11/2006, Eran Guendelman wrote: Hi, we are trying to track down why cmake 2.4 is crashing when generating the VisualStudio 7 build files whereas cmake 2.2 worked fine. I built a debug version of cmake and narrowed it down to the following issue: In cm

Re: [CMake] Crash in ComputeLinkInformation: cmTarget::GetDirectory returns NULL for UTILITY type

2006-10-11 Thread William A. Hoffman
At 05:11 PM 10/11/2006, Eran Guendelman wrote: >Hi, we are trying to track down why cmake 2.4 is crashing when generating the >VisualStudio 7 build files whereas cmake 2.2 worked fine. I built a debug >version of cmake and narrowed it down to the following issue: > >In cmLocalGenerator::ComputeL

[CMake] Crash in ComputeLinkInformation: cmTarget::GetDirectory returns NULL for UTILITY type

2006-10-11 Thread Eran Guendelman
Hi, we are trying to track down why cmake 2.4 is crashing when generating the VisualStudio 7 build files whereas cmake 2.2 worked fine. I built a debug version of cmake and narrowed it down to the following issue: In cmLocalGenerator::ComputeLinkInformation it goes through the libraries and

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread William A. Hoffman
At 05:10 PM 10/11/2006, Warren Turkal wrote: >On Wednesday 11 October 2006 12:52, Brad King wrote: >> Mike Jackson wrote: >> > BTW, when is the next release? >> >> When it's ready. > >Typical open source answer:-) Unlike commercial software which always releases on fixed and reliable schedule

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Warren Turkal
On Wednesday 11 October 2006 12:52, Brad King wrote: > Mike Jackson wrote: > > BTW, when is the next release? > > When it's ready. Typical open source answer:-) wt -- Warren Turkal, Research Associate III/Systems Administrator Colorado State University, Dept. of Atmospheric Science _

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: > Thanks for the fix. I look forward to the next release of Cmake. BTW, when > is the next release? When it's ready. -Brad ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Mike Jackson
Thanks for the fix. I look forward to the next release of Cmake. BTW, when is the next release? On 10/11/06 12:59 PM, "Brad King" <[EMAIL PROTECTED]> wrote: > Mike Jackson wrote: >> On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: >>> SET_TARGET_PROPERTIES (DislocationIO >>> PROPERT

Re: [CMake] Xcode 2.4 and cmake, does it work?

2006-10-11 Thread William A. Hoffman
At 12:29 PM 10/11/2006, Sean McBride wrote: > >Any ideas? It is a bug in the Xcode generator happens with any version of Xcode. I am working on a fix. -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Component-based FindSDL.cmake

2006-10-11 Thread Brad King
Pablo Odorico wrote: > Some questions now: > - Can't QUIET be used with components? The entire find is either quiet or not. > - _all_ components have to be REQUIRED? The component syntax is just a list of components that are requested. You can interpret it however you wish in the Find module

Re: [CMake] Xcode 2.4 and cmake, does it work?

2006-10-11 Thread Sean McBride
On 2006-10-10 17:08, William A. Hoffman said: >There is a dashbaord, and it seems to be working. >eno Darwin-XCode24-dbg >So, I think it should work. The output you have is not very helpful. >You may want to try a cmake --debug-trycompile, then look at >the CMakeFiles/CMakeTmp directory and

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: > On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: >> SET_TARGET_PROPERTIES (DislocationIO >> PROPERTIES BUILD_WITH_INSTALL_RPATH 1 >> INSTALL_NAME_DIR "@executable_path/../PlugIns" >> ) Okay, there was a bug in the code that computes the final value

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: > > > On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: > >> Mike Jackson wrote: >>> On 10/10/06 4:08 PM, "Brad King" <[EMAIL PROTECTED]> wrote: cmake --help-command SET_TARGET_PROPERTIES >>> OK.. Reading all the output from that command there seems to be some

Re: [CMake] MACOSX_DEPLOYMENT_TARGET

2006-10-11 Thread Sean McBride
On 2006-10-11 02:20, Axel Roebel said: >The problem is that to my knowledge the only way to communicate the >deployment target to gcc is via environment variables. I admit this is a >really strange way (probably its save to say silly) to select compiler >options, but as far as I know, this is the

Re: [CMake] building executable from static libs

2006-10-11 Thread Alexander Neundorf
Original-Nachricht Datum: Wed, 11 Oct 2006 16:29:11 +0200 Von: Benjamin Roy <[EMAIL PROTECTED]> An: cmake@cmake.org Betreff: [CMake] building executable from static libs > Hi, > > My question should sound like a dummy one, but can't find the answer by > myself, maybe I have no

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Mike Jackson
Cmake 2.4.3 Unix Make files On 10/11/06 9:38 AM, "David Cole" <[EMAIL PROTECTED]> wrote: > Are you using CMake 2.4.3? > Xcode or Unix Makefiles generator? > > Mike Jackson wrote: > >> >> On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: >> >> >> >>> Mike Jackson wrote: >>> >

[CMake] building executable from static libs

2006-10-11 Thread Benjamin Roy
Hi, My question should sound like a dummy one, but can't find the answer by myself, maybe I have not understand clearly the spirit of Cmake... I try to change a build system from automake/autoconf under Cmake on linux, due to some portability issues... So I need to build some executable fro

Re: [CMake] MACOSX_DEPLOYMENT_TARGET

2006-10-11 Thread Brad King
Axel Roebel wrote: > The problem is that to my knowledge the only way to communicate the > deployment target to gcc is via environment variables. I admit this is a > really strange way (probably its save to say silly) to select compiler > options, but as far as I know, this is the way it is done

Re: [CMake] Building generated c++ code with py++ and boost.python

2006-10-11 Thread Brad King
Pecevski Dejan wrote: > Hi, > > As part of our build process which uses cmake, we want to generate > wrapper c++ files from existing sources, for python interfacing (using > Py++ and boost.python). > The dependency we want to achieve is : >A1.cpp A2.cpp A3.cpp A1.h A2.h A3.h ... <- Ab

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread David Cole
Are you using CMake 2.4.3? Xcode or Unix Makefiles generator? Mike Jackson wrote: On 10/10/06 4:56 PM, "Brad King" <[EMAIL PROTECTED]> wrote: Mike Jackson wrote: On 10/10/06 4:08 PM, "Brad King" <[EMAIL PROTECTED]> wrote: cmake --help-command SET_TARGET_PROPERTIES

Re: [CMake] Setting global link flags

2006-10-11 Thread Brad King
Axel Roebel wrote: > I frequently struggle with the problem to set > global linker flags. Global here means these flags should be used > whenever the linker is used. The main example where I need that > is the -mno-cygwin flag of the cygwin compiler. > This flag creates objects that will not make

Re: [CMake] Building generated c++ code with py++ and boost.python

2006-10-11 Thread Pecevski Dejan
Hi again, Filipe Sousa wrote: ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/copy.h COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/a.h ${CMAKE_CURRENT_BINARY_DIR}/copy.h DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/a.h ) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} # for copy.h ${CMAKE_CURRENT

[CMake] Setting global link flags

2006-10-11 Thread Axel Roebel
Hello, I frequently struggle with the problem to set global linker flags. Global here means these flags should be used whenever the linker is used. The main example where I need that is the -mno-cygwin flag of the cygwin compiler. This flag creates objects that will not make use of the cygwin dl

Re: [CMake] Building generated c++ code with py++ and boost.python

2006-10-11 Thread Filipe Sousa
Pecevski Dejan wrote: > Filipe Sousa wrote: > > Hi Filipe, > Thanks for the reply. > I have setup a simple example based on your solution, but it doesn't > seem to work. Files of the example are attached to the e-mail. > Basically in the example I am building a library libtest from these files: >

Re: [CMake] Building generated c++ code with py++ and boost.python

2006-10-11 Thread Pecevski Dejan
Filipe Sousa wrote: ADD_CUSTOM_COMMAND( OUTPOUT ${CMAKE_CURRENT_BINARY_DIR}/A1.cpp ${CMAKE_CURRENT_BINARY_DIR}/A1.h .. A2.cpp ... COMMAND generate.py ${CMAKE_CURRENT_BINARY_DIR}/Abase.h DEPENDS genereate.py ${CMAKE_CURRENT_BINARY_DIR}/Abase.h ) You have to add the genareated file to ADD_LIBRA