Re: [CMake] --enable-* with cmake

2007-08-07 Thread Eric Noulard
2007/8/8, gga <[EMAIL PROTECTED]>: > I'm currently using cmake for a variety of projects. Love it. > However, one feature I find myself missing more and more is one from > autotools configure scripts: AC_ARG_ENABLE(). > That is, the ability to allow the configuration script (ie. cmake) to be > run

[CMake] --enable-* with cmake

2007-08-07 Thread gga
I'm currently using cmake for a variety of projects. Love it. However, one feature I find myself missing more and more is one from autotools configure scripts: AC_ARG_ENABLE(). That is, the ability to allow the configuration script (ie. cmake) to be run with arbitrary flags to turn on or turn off

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-07 Thread Alex Dantart
doing exacly that was exactly the reason I wrote here... in my first email of this trhread you will see the problems doing that Philip Lowman wrote: Alex Dantart wrote: Matthew Woehlke wrote: Alex Dantart wrote: Matthew Woehlke wrote: Any reason you aren't using a pr

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-07 Thread Alex Dantart
Matthew Woehlke wrote: Alex Dantart wrote: Matthew Woehlke wrote: Any reason you aren't using a pre-compiled binary? where can i find a pre-compiled binary >2.4.2 for ubuntu ? I can't ! http://www.cmake.org/HTML/Download.html ?? WHERE ?!?!?! no binnaries for ubuntu there !! the .sh just

[CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-07 Thread Matthew Woehlke
Alex Dantart wrote: Matthew Woehlke wrote: Any reason you aren't using a pre-compiled binary? where can i find a pre-compiled binary >2.4.2 for ubuntu ? I can't ! http://www.cmake.org/HTML/Download.html ?? Alternatively, maybe you should try bootstrappping cmake (you can build cmake on a s

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-07 Thread Alex Dantart
Matthew Woehlke wrote: Alex Dantart wrote: Hi: I need cmake > 2.4.2 for a project. I'm on ubuntu. First I installed the cmake I have in the dapper repository: apt-get install cmake That installs 2.2 successfully: [snip bits about cmake 2.2 not building newer cmake] Any reason you aren't usi

[CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-07 Thread Matthew Woehlke
Alex Dantart wrote: Hi: I need cmake > 2.4.2 for a project. I'm on ubuntu. First I installed the cmake I have in the dapper repository: apt-get install cmake That installs 2.2 successfully: [snip bits about cmake 2.2 not building newer cmake] Any reason you aren't using a pre-compiled binary

[CMake] problems compilating 2.4.7 under 2.2

2007-08-07 Thread Alex Dantart
Hi: I need cmake > 2.4.2 for a project. I'm on ubuntu. First I installed the cmake I have in the dapper repository: apt-get install cmake That installs 2.2 successfully: # cmake cmake version 2.2-patch 3 ... Now, I follow the instructions of Install page (http://cmake.org/HTML/Install.html)

Re: [CMake] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread Marie-Christine Vallet
Alan W. Irwin wrote: PLplot used to have a library built from Fortran and C. It worked okay on Linux, but caused nothing but trouble on other platforms so we split the library into two libraries, one containing fortran objects and one containing C objects, and my life has been much more pea

Re: [CMake] linker library order

2007-08-07 Thread Jon W
On 8/7/07, Philip Lowman <[EMAIL PROTECTED]> wrote: > Jon W wrote: > > I need to have a specific library linked before all other libraries. > > For example, I need foo.lib linked before the defaults, " > > kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib > > advapi32.lib shell32.lib ole

Re: [CMake] linker library order

2007-08-07 Thread Philip Lowman
Jon W wrote: > I need to have a specific library linked before all other libraries. > For example, I need foo.lib linked before the defaults, " > kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib > advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib > odbccp32.lib". > >

[CMake] linker library order

2007-08-07 Thread Jon W
I need to have a specific library linked before all other libraries. For example, I need foo.lib linked before the defaults, " kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib". What would be the best way

[CMake] [SOLVED] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread Marie-Christine Vallet
David Cole wrote: The first argument of SET_TARGET_PROPERTIES should be the same as the first argument of your ADD_LIBRARY or ADD_EXECUTABLE command. You need one SET_TARGET_PROPERTIES for each library or executable target where you have a mixture of C, CXX and Fortran code... HTH, David

Re: [CMake] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread David Cole
The first argument of SET_TARGET_PROPERTIES should be the same as the first argument of your ADD_LIBRARY or ADD_EXECUTABLE command. You need one SET_TARGET_PROPERTIES for each library or executable target where you have a mixture of C, CXX and Fortran code... HTH, David On 8/7/07, Marie-Christin

Re: [CMake] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread Marie-Christine Vallet
David Cole wrote: Your first one should work. But it should be "CXX" with uppercase X characters. That is the case, it's just a Typo And the value of "TARGET" must be set prior to invoking SET_TARGET_PROPERTIES using ${TARGET} -- are you sure the value of ${TARGET} is correct...? How to I

Re: [CMake] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread Alan W. Irwin
On 2007-08-07 11:02-0700 Marie-Christine Vallet wrote: Hi, I have C++ Fortran project, and cannot seem to set the linker_language of the project. What am I doing wrong? Any suggestion? PLplot used to have a library built from Fortran and C. It worked okay on Linux, but caused nothing but t

Re: [CMake] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread David Cole
Your first one should work. But it should be "CXX" with uppercase X characters. And the value of "TARGET" must be set prior to invoking SET_TARGET_PROPERTIES using ${TARGET} -- are you sure the value of ${TARGET} is correct...? HTH, David On 8/7/07, Marie-Christine Vallet <[EMAIL PROTECTED]> wr

[CMake] LINKER_LANGUAGE Fortran C CXX project

2007-08-07 Thread Marie-Christine Vallet
Hi, I have C++ Fortran project, and cannot seem to set the linker_language of the project. What am I doing wrong? Any suggestion? Thanks, Marie --- CMakeLists.txt PROJECT(skinmesh Fortran CXX C ) # the name of your project SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINKER_LANG

Re: [CMake] RPM CPack generator, was: How to request features?

2007-08-07 Thread Eric Noulard
2007/8/7, Frederik Deweerdt <[EMAIL PROTECTED]>: > On Mon, Aug 06, 2007 at 06:31:32PM +0200, Eric Noulard wrote: > > 2007/8/6, Alexander Neundorf <[EMAIL PROTECTED]>: > > 2) Those files MUST define the following variables > > > > CPACK_GENERATOR_NAME --> the name of the GENERATOR > > e.g. S

Re: [CMake] FW: Windows registry

2007-08-07 Thread Brandon Van Every
On 8/7/07, Berardino la Torre <[EMAIL PROTECTED]> wrote: > > Trying to read an installation path from the windows registry: > > SET(FBXSDK_ROOT_PATH > [HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK > 2006.11.1;Install_Dir] > CACHE PATH "FBX") Well, whatever the answer, I see no documentation on [HK

Re: [CMake] TARGET_LINK_LIBRARIES for library targets?

2007-08-07 Thread Brandon Van Every
On 8/7/07, Christian Convey <[EMAIL PROTECTED]> wrote: > When my project contains two libraries, where one depends on the other... > > Are there any reasons for, or against, calling th > TARGET_LINK_LIBRARIES command to express that dependency? > > Does the answer change depending on whether zero,

Re: [CMake] RPM CPack generator, was: How to request features?

2007-08-07 Thread Frederik Deweerdt
On Mon, Aug 06, 2007 at 06:31:32PM +0200, Eric Noulard wrote: > 2007/8/6, Alexander Neundorf <[EMAIL PROTECTED]>: > 2) Those files MUST define the following variables > > CPACK_GENERATOR_NAME --> the name of the GENERATOR > e.g. SET(CPACK_GENERATOR_NAME "RPM") > > CPACK_RPM_OK will be

[CMake] TARGET_LINK_LIBRARIES for library targets?

2007-08-07 Thread Christian Convey
When my project contains two libraries, where one depends on the other... Are there any reasons for, or against, calling th TARGET_LINK_LIBRARIES command to express that dependency? Does the answer change depending on whether zero, one, or both of them are static vs. dynamic libraries? Thanks, C

[CMake] FW: Windows registry

2007-08-07 Thread Berardino la Torre
Trying to read an installation path from the windows registry: SET(FBXSDK_ROOT_PATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir] CACHE PATH "FBX") and then using the variable FBXSDK_ROOT_PATH to setup theinclude and lib directories. INCLUDE_DIRECTORIES(${FBXSDK_ROOT_P

Re: [CMake] Newbie question: TARGET_LINK_LIBRARIES vs. ADD_DEPENDENCIES

2007-08-07 Thread James Bigler
Christian Convey wrote: I've got two subprojects: A library FOO, and a program BAR. If I have this: ADD_EXECUTABLE(BAR main.cpp) TARGET_LINK_LIBRARIES(BAR FOO) Then does CMake somehow realize that it needs to build its FOO library before trying to link the BAR program? Yes. TARGET_LINK_LIBR

[CMake] Newbie question: TARGET_LINK_LIBRARIES vs. ADD_DEPENDENCIES

2007-08-07 Thread Christian Convey
I've got two subprojects: A library FOO, and a program BAR. If I have this: ADD_EXECUTABLE(BAR main.cpp) TARGET_LINK_LIBRARIES(BAR FOO) Then does CMake somehow realize that it needs to build its FOO library before trying to link the BAR program? Or do I need to explicitly tell it to do this, us

[CMake] What is the best way to change default settings

2007-08-07 Thread Frank Hilliger
Hi, I want to remove the /GZ flag which is set for Windows Visual C++ compilers in CMAKE_CXX_FLAGS_DEBUG_INIT. Furthermore I want to remove some .lib files defined in CMAKE_C_STANDARD_LIBRARIES_INIT. How I can achieve this without touching CMake\Modules\Platform\Windows-cl.cmake ? I tried remove