Re: [CMake] an akward preprocessor

2010-11-22 Thread Michael Hertling
On 11/22/2010 10:39 PM, luxInteg wrote: > Greetings > I am learning cmake > > I have a small project to be installed in some directory $INSTALLED > =/whatever/installed/directory/is > > > I have some files say fila1.c ..File2.c to compile with a preprocessor > that includes a reference

Re: [CMake] cmake and no make

2010-11-22 Thread Michael Hertling
On 11/23/2010 03:25 AM, luxInteg wrote: > Greetings > > > I am learning cmake > > > Compiling alglib (http://www.alglib.net/) (cpp) does not use make > It is done simply by a command such as > g++ -c *.cpp in the src directory > > QUESTION. If one wants a library from alglib I would like

Re: [CMake] providing library information, what's the cmake way

2010-11-22 Thread Michael Hertling
On 11/22/2010 11:28 PM, Ian Monroe wrote: > So with a library, the correct thing to do is to install your > FindLibrary.cmake into ${CMAKE_ROOT}/Modules and then dependent > projects would just do find_package(Library REQUIRED) correct? If the library is built with CMake it should provide a config

Re: [CMake] Creating a XXXConfigYYY.cmake file

2010-11-22 Thread Michael Hertling
On 11/17/2010 04:13 PM, Torri, Stephen CIV NSWCDD, W15 wrote: > I have been reading email posts on goggle that says if you create a library > then produce a Configcmake file rather than a Find.cmake > file. That is fine but what confuses me is: Indeed, a package XXX - particularly a library - th

[CMake] cmake and no make

2010-11-22 Thread luxInteg
Greetings I am learning cmake Compiling alglib (http://www.alglib.net/) (cpp) does not use make It is done simply by a command such as g++ -c *.cpp in the src directory QUESTION. If one wants a library from alglib I would like to know if it can it be compiled using CMAKE and if so ho

[CMake] providing library information, what's the cmake way

2010-11-22 Thread Ian Monroe
So with a library, the correct thing to do is to install your FindLibrary.cmake into ${CMAKE_ROOT}/Modules and then dependent projects would just do find_package(Library REQUIRED) correct? I guess I'm thinking about how, in the situation where they don't have the library installed, they would then

[CMake] an akward preprocessor

2010-11-22 Thread luxInteg
Greetings I am learning cmake I have a small project to be installed in some directory $INSTALLED =/whatever/installed/directory/is I have some files say fila1.c ..File2.c to compile with a preprocessor that includes a reference to $INSTALL how do I set the compile properties of file

Re: [CMake] Using xilink

2010-11-22 Thread Brad King
On 11/22/2010 10:42 AM, ycollette.nos...@free.fr wrote: > I have tried to launch cmake from the visual studio console and from a fresh > dos console in which I set the paths to intel fortran bin directory and the > result is that cmake doesn't detect xilink. > In the first case (visual console),

Re: [CMake] cmake 2.8.3 forces -rdynamic for pf90 in pure fortran projects

2010-11-22 Thread Brad King
On 11/22/2010 11:51 AM, Bill Hoffman wrote: > On 11/22/2010 11:18 AM, Verweij, Arjen wrote: >> -rdynamic is used for linking with pgf90 even though it is not >> supported. The flag is imported from Linux-GNU.cmake and I guess it >> is included because cmake (2.8.3) checks for C and C++ compilers by

Re: [CMake] cmake 2.8.3 forces -rdynamic for pf90 in pure fortran projects

2010-11-22 Thread Bill Hoffman
On 11/22/2010 11:18 AM, Verweij, Arjen wrote: Hi, -rdynamic is used for linking with pgf90 even though it is not supported. The flag is imported from Linux-GNU.cmake and I guess it is included because cmake (2.8.3) checks for C and C++ compilers by default. http://www.vtk.org/Bug/view.php?id=99

[CMake] cmake 2.8.3 forces -rdynamic for pf90 in pure fortran projects

2010-11-22 Thread Verweij, Arjen
Hi, -rdynamic is used for linking with pgf90 even though it is not supported. The flag is imported from Linux-GNU.cmake and I guess it is included because cmake (2.8.3) checks for C and C++ compilers by default. http://www.vtk.org/Bug/view.php?id=9985 talks about this bug, but I'm unsure what

Re: [CMake] Using xilink

2010-11-22 Thread ycollette . nospam
I have tried to launch cmake from the visual studio console and from a fresh dos console in which I set the paths to intel fortran bin directory and the result is that cmake doesn't detect xilink. In the first case (visual console), cmake detect the visual linker. In the second case (dos console

Re: [CMake] Using xilink

2010-11-22 Thread ycollette . nospam
Hello, I have added set_property(TARGET Arc3D PROPERTY INTERPROCEDURAL_OPTIMIZATION 1) in my CMakeLists.txt. I have removed the include(CMakeDetermineFortranCompiler) from my CMakeLists.txt. Now, the intel fortran compiler is still correctly detected, but it seems that the microsoft visual l

Re: [CMake] Using xilink

2010-11-22 Thread Brad King
On 11/22/2010 08:34 AM, Michael Wild wrote: > On 11/22/2010 07:56 AM, ycollette.nos...@free.fr wrote: >> I have a fortran project and I use the fortran intel compiler under windows >> XP 64 bits with cmake 2.8.2. >> I added include(CMakeDetermineFortranCompiler) in my project and the intel >> for

Re: [CMake] Using xilink

2010-11-22 Thread Michael Wild
On 11/22/2010 07:56 AM, ycollette.nos...@free.fr wrote: > Hello, > > I have a fortran project and I use the fortran intel compiler under windows > XP 64 bits with cmake 2.8.2. > I added include(CMakeDetermineFortranCompiler) in my project and the intel > fortran compiler is correctly detected. >