Re: [CMake] linker associated to ifort fortran compiler

2010-09-29 Thread Arjen Markus
Hello Eric, On 2010-09-29 17:51, pellegrini wrote: Hello everybody, I would like to compile my project using intel fortran compiler on my windows machine. When running the following commands: cmake -DCMAKE_Fortran_Compiler=ifort -G"NMake Makefiles" nmake VERBOSE=1 I can see that nmake use

Re: [CMake] How to specify -fpic ?

2010-09-29 Thread Michael Wild
On 29. Sep, 2010, at 18:25 , David Aldrich wrote: > Hi > > My C++ code consists of an executable and several shared libraries. > > With my CMake build files, I find that the executable fails to load the > shared libraries ( the dlopen() call results in error 'undefined symbol...' ). > > The s

Re: [CMake] Re-configuration, ExternalProjects, etc.

2010-09-29 Thread Michael Wild
On 29. Sep, 2010, at 20:09 , Clifford Yapp wrote: > After working for a while at converting a project to CMake, I would > like to ask a question/suggest a feature for CMake. > > The project I am working on (BRL-CAD) includes various external > libraries that it relies on on a subdirectory, with

Re: [CMake] How to specify -fpic ?

2010-09-29 Thread Michael Hertling
On 09/29/2010 06:25 PM, David Aldrich wrote: > Hi > > My C++ code consists of an executable and several shared libraries. > > With my CMake build files, I find that the executable fails to load the > shared libraries ( the dlopen() call results in error 'undefined symbol...' ). > > The software

[CMake] CMakeDetermineVSServicePack.cmake support for vs2010

2010-09-29 Thread aaron.meadows
Hi all. I noticed that CMakeDetermineVSServicePack.cmake only supports vs2005, vs2005 sp1, vs2008, vs2008 sp1. I wanted to use it for vs2010. I looked for a bug but the only one I found was the one that resulted in the scripts creation: http://public.kitware.com/Bug/view.php?id=8803 I hav

Re: [CMake] embedding lib into a shared object

2010-09-29 Thread Michael Hertling
On 09/29/2010 12:26 PM, Ovanes Markarian wrote: > Hello *, > > I have some library available as a Linux lib file. Now I need to create a > shared object (actually a MODULE in terms of CMake) out of this lib. The > module is later on loaded using the dlopen-API function. > > I created a sample pro

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread Bill Hoffman
On 9/29/2010 11:02 AM, elizabeta petreska wrote: This is the link to bug report http://www.paraview.org/Bug/view.php?id=11274 OK, I have fixed the issue in CMake next. To get around the problem you can use MAIN_DEPENDENCY like this: ADD_CUSTOM_COMMAND( OUTPUT "${PROJECT_BINARY_DIR}/$(Config

Re: [CMake] CMake, JOM and multiple top-level targets

2010-09-29 Thread Bill Hoffman
On 9/24/2010 1:03 PM, Óscar Fuentes wrote: JOM does a nice work compiling multiple files of the same top-level product (.exe, .dll etc) but for some reason it doesn't build multiple top-level targets in parallel. Here I have a project that generates several independent dlls, each based on one or

[CMake] Re-configuration, ExternalProjects, etc.

2010-09-29 Thread Clifford Yapp
After working for a while at converting a project to CMake, I would like to ask a question/suggest a feature for CMake. The project I am working on (BRL-CAD) includes various external libraries that it relies on on a subdirectory, with a variety of options for enabling and disabling use of the loc

[CMake] How to specify -fpic ?

2010-09-29 Thread David Aldrich
Hi My C++ code consists of an executable and several shared libraries. With my CMake build files, I find that the executable fails to load the shared libraries ( the dlopen() call results in error 'undefined symbol...' ). The software works fine under our production build system that uses manua

[CMake] Overriding intel default compiler flags

2010-09-29 Thread pellegrini
Hello everybody, I come back with a question I asked yesterday but that I surely misformulated. In the meantime I turned around the problem all the day but still without any results ... I would like to build my project using ifort fortran compiler with a set of compiler flags different from t

[CMake] linker associated to ifort fortran compiler

2010-09-29 Thread pellegrini
Hello everybody, I would like to compile my project using intel fortran compiler on my windows machine. When running the following commands: cmake -DCMAKE_Fortran_Compiler=ifort -G"NMake Makefiles" nmake VERBOSE=1 I can see that nmake use the linker 'lib' provided with the intel fortran com

Re: [CMake] setting Visual Studio solution name

2010-09-29 Thread John Drescher
I am not exactly sure what you are doing but on all my CMake projects I put only 1 target at the root level project. All other subprojects are in subdirectories of the root target. The CMakeLists for these subprojects can have project names but this is not needed. The solution gets the name from th

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
This is the link to bug report http://www.paraview.org/Bug/view.php?id=11274 On Wed, Sep 29, 2010 at 4:41 PM, Bill Hoffman wrote: > On 9/29/2010 10:31 AM, elizabeta petreska wrote: > >> >> >> > OK, can you send a complete project that shows the issue and create a bug > report. > > Thanks. > >> On

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread Bill Hoffman
On 9/29/2010 10:31 AM, elizabeta petreska wrote: OK, can you send a complete project that shows the issue and create a bug report. Thanks. On Wed, Sep 29, 2010 at 4:31 PM, elizabeta petreska mailto:elizabeta.petre...@gmail.com>> wrote: I did the test. Unfortunately the problem remain

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
On Wed, Sep 29, 2010 at 4:31 PM, elizabeta petreska < elizabeta.petre...@gmail.com> wrote: > I did the test. Unfortunately the problem remains. > > > On Wed, Sep 29, 2010 at 4:16 PM, Bill Hoffman wrote: > >> On 9/29/2010 9:55 AM, elizabeta petreska wrote: >> >>> Just checked. same issue >>> >>> >>

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread Bill Hoffman
On 9/29/2010 9:55 AM, elizabeta petreska wrote: Just checked. same issue Can you try the 2.8.3 rc1 : http://www.cmake.org/files/v2.8/cmake-2.8.3-rc1-win32-x86.exe Also try this one: http://www.cmake.org/files/dev/cmake-2.8.2.20100928-g1b0e5-win32-x86.exe -Bill __

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
Just checked. same issue On Wed, Sep 29, 2010 at 3:50 PM, Bill Hoffman wrote: > On 9/29/2010 9:38 AM, elizabeta petreska wrote: > >> If I use such a script for comparing time stamps of input and output >> files, I would need to rewrite every cmakelists.txt that uses >> add_custom_command, and exe

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread Bill Hoffman
On 9/29/2010 9:38 AM, elizabeta petreska wrote: If I use such a script for comparing time stamps of input and output files, I would need to rewrite every cmakelists.txt that uses add_custom_command, and execute the needed commands only if input file is older than output,or maybe I did not underst

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
If I use such a script for comparing time stamps of input and output files, I would need to rewrite every cmakelists.txt that uses add_custom_command, and execute the needed commands only if input file is older than output,or maybe I did not understand you idea with the script. This seems like a l

Re: [CMake] cmake do not read my ifort compiler fllags - correct version

2010-09-29 Thread pellegrini
Marcel Loose a écrit : On Wed, 2010-09-29 at 12:06 +0200, pellegrini wrote: Hello everybody, I would like to set my own compiler flags to compile a library using intel fortran compiler. To do so, I created in my Src/ directory a "Compiler/Intel-Fortran.cmake" file that contains my prefer

Re: [CMake] Running tests using [C++/Python] modules from the build tree

2010-09-29 Thread Pere Mato Vila
Hi Marcel, > You could write a wrapper script that sets your environment variables. > Since you don't know the actual values for these variables beforehand, > you should let CMake generate this script, using configure_file(). > That's the way I do it, and it works great. Thanks for the suggestio

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread Campbell Barton
On Wed, Sep 29, 2010 at 10:02 AM, elizabeta petreska wrote: > Hi, > > I asked this question some time ago in the mailing list. Unfortunately, I > did not try to resolve this issue since then, so I am trying again. :) > > I am using Visual Studio 2010 generator and cmake 2.8.2. > > Why the followin

Re: [CMake] embedding lib into a shared object

2010-09-29 Thread Marcel Loose
On Wed, 2010-09-29 at 12:26 +0200, Ovanes Markarian wrote: > Hello *, > > > I have some library available as a Linux lib file. Now I need to > create a shared object (actually a MODULE in terms of CMake) out of > this lib. The module is later on loaded using the dlopen-API function. > > > I cre

Re: [CMake] cmake do not read my ifort compiler fllags - correct version

2010-09-29 Thread Marcel Loose
On Wed, 2010-09-29 at 12:06 +0200, pellegrini wrote: > Hello everybody, > > I would like to set my own compiler flags to compile a library using > intel fortran compiler. > > To do so, I created in my Src/ directory a > "Compiler/Intel-Fortran.cmake" file that contains my preferences such as: >

Re: [CMake] How to set compiler flags?

2010-09-29 Thread David Aldrich
Hi > If that is so, I plan to assign my desired release options to > CMAKE_CXX_FLAGS_RELEASE and assign that variable to CMAKE_CXX_FLAGS. That way, > a release build will happen by default (no build type specified) or if > "Release" is specified. I can handle debug builds using CMAKE_CXX_FLAGS_DEB

[CMake] embedding lib into a shared object

2010-09-29 Thread Ovanes Markarian
Hello *, I have some library available as a Linux lib file. Now I need to create a shared object (actually a MODULE in terms of CMake) out of this lib. The module is later on loaded using the dlopen-API function. I created a sample project with / +-- testlib +-- so testlib - consists of a sing

[CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
Hi, I asked this question some time ago in the mailing list. Unfortunately, I did not try to resolve this issue since then, so I am trying again. :) I am using Visual Studio 2010 generator and cmake 2.8.2. Why the following custom command is runing all the time, although the input dependency ( m

[CMake] cmake do not read my ifort compiler fllags - correct version

2010-09-29 Thread pellegrini
Hello everybody, I would like to set my own compiler flags to compile a library using intel fortran compiler. To do so, I created in my Src/ directory a "Compiler/Intel-Fortran.cmake" file that contains my preferences such as: SET(CMAKE_BUILD_TYPE_INIT Release) SET(CMAKE_Fortran_FLAGS_INIT

[CMake] cmake do not read my ifort compiler fllags

2010-09-29 Thread pellegrini
Hello everybody, I would like to set my own compiler flags to compile a library using intel fortran compiler. To do so, I created in my Src/ directory a "Compiler/Intel-Fortran.cmake" file that contains my preferences such as: SET(CMAKE_BUILD_TYPE_INIT Release) SET(CMAKE_Fortran_FLAGS_INIT

Re: [CMake] Howto compile static executable?

2010-09-29 Thread Marcel Loose
On Tue, 2010-09-28 at 18:57 +0200, Eric Noulard wrote: > Hi All, > > I have project which (cross-)compile some simple C applications > with some bare CMake statement like this: > > add_executable(myapp myapp.c) > > no target_link_libraries, no dep, etc... > > I want to build fully static execu

Re: [CMake] Running tests using [C++/Python] modules from the build tree

2010-09-29 Thread Marcel Loose
On Tue, 2010-09-28 at 18:42 +0200, Pere Mato Vila wrote: > Hi, > > I am seeking for advise. I would like to run some CTest tests from the build tree, which require C++ or Python modules created in other project directories (packages). For this I need to build correctly the LD_LIBRARY_PATH and PY

Re: [CMake] How to set compiler flags?

2010-09-29 Thread David Aldrich
Hi Michael > > [...] So I now use add_definitions instead: > > > > add_definitions( "-Wall -m64 -O3" ) > > > > Is there a better way of doing this? > > Don't do this at all, and adhere to the flags. Thanks for your advice. > Doesn't the DEBUG variant of the flags, e.g. CMAKE_CXX_FLAGS_DEBUG, an

[CMake] RULE_XXX

2010-09-29 Thread Jesper Eskilson
I'm trying to use the RULE_XXX properties to customize make output. Is there a way to intercept ALL output from make, including the "Build target ...", "Building C object...", etc., messages as well? -- /Jesper ___ Powered by www.kitware.com Visit o