[CMake] cpack and boost dependencies when building a debian installer

2015-02-13 Thread pellegrini
Hello everybody, I would like to use cpack (2.8.7) in order to build a debian installer for a c++ library that has a few dependencies namely: - boost (headers + libraries) - fftw3-3 - eigen3 - hdf5 - tiff I would like to set my cpack file in such a way that the minimum

[CMake] question about SET_SOURCE_FILES_PROPERTIES

2013-12-12 Thread pellegrini
Dear CMakers, I have a Fortran project to be built on Windows and Linux using ifort compiler. For two of the project files, I need to add specific compiler flag (i.e. /assume:byterecl). To do so, I used the following CMake command: SET_SOURCE_FILES_PROPERTIES(file1.f90 PROPERTIES

[CMake] 32/64 bit flag

2013-12-09 Thread pellegrini
Dear CMakers, I have to build cmake files for a Fortran project using ifort compiler on Windows, linux and macos platform. That project will be linked to Winteracter Fortran library whose installation paths are different depending on the 32 or 64 bit versions. Is there a way to automatically

Re: [CMake] 32/64 bit flag

2013-12-09 Thread pellegrini
On 12/9/2013 1:26 PM, Eric Noulard wrote: 2013/12/9 pellegrini pellegr...@ill.fr: Dear CMakers, I have to build cmake files for a Fortran project using ifort compiler on Windows, linux and macos platform. That project will be linked to Winteracter Fortran library whose installation paths

Re: [CMake] 32/64 bit flag - solved

2013-12-09 Thread pellegrini
On 12/9/2013 2:34 PM, Eric Noulard wrote: 2013/12/9 pellegrini pellegr...@ill.fr: Thanks Eric for the hint. I read some time ago some stuffs about the CMAKE_SIZEOF_VOID_P variable but unfortunately, in the present case, the problem is a bit different. It can be for example that on a 64 bit

[CMake] problem with shortcut CPACK/NSIS

2012-12-07 Thread pellegrini
) # General CPACK options set(CPACK_PACKAGE_NAME ${PROJECT_NAME}) set(CPACK_PACKAGE_VENDOR Eric Pellegrini - Institut Laue Langevin) set(CPACK_PACKAGE_VERSION_MAJOR 1) set(CPACK_PACKAGE_VERSION_MINOR 0) # NSIS section if(CPACK_GENERATOR MATCHES NSIS) # Create the desktop link set

[CMake] cache behaviour

2012-06-27 Thread pellegrini
done -- Generating done -- Build files have been written to: C:/Users/pellegrini/work/diffraction/sxtalsoft/build/ifort If a run it a second time WITHOUT deleting the CMakeCache.txt file with cmake -GNMake Makefiles -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_BUILD_TYPE=Debug ..\..\. I get

Re: [CMake] Default value for CMAKE_BUILD_TYPE

2012-05-14 Thread pellegrini
=VTK.git;a=blob;f=CMakeLists.txt;h=a57fd66ef333fc26bf74fe658c88c3c634f54c3a;hb=HEAD#l12 Hth Jc On Fri, May 11, 2012 at 11:21 AM, pellegrini pellegr...@ill.fr mailto:pellegr...@ill.fr wrote: Hi all, when cmake is run without specifying the build type using -D CMAKE_BUILD_TYPE

[CMake] Default value for CMAKE_BUILD_TYPE

2012-05-11 Thread pellegrini
Hi all, when cmake is run without specifying the build type using -D CMAKE_BUILD_TYPE, it is the Debug mode that is selected as the default. I would like to find a way to use Release as the default value when the user does not specify any build type in the cmake command line. From one of my

[CMake] avoiding complete rebuild when the user changes

2012-04-18 Thread pellegrini
to escape from this feature ? thanks a lot see you Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] About CMAKE_INSTALL_PREFIX

2012-01-24 Thread pellegrini
, and if not so, I take the parent directory of the default value. Is that possible ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

Re: [CMake] About CMAKE_INSTALL_PREFIX - solved

2012-01-24 Thread pellegrini
other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Eric Pellegrini

Re: [CMake] Actual effect of set_source_files_properties with COMPILE_FLAGS - solved

2012-01-11 Thread pellegrini
Hello everybody, that's finally OK. Indeed; everything was OK. I did not pay attention that the flag was actually here. I was simply not looking in the right place. Perhaps new glasses or some rest should be my first resolution for 2012 !!! sorry for the inconvenience Eric pellegrini

[CMake] Actual effect of set_source_files_properties with COMPILE_FLAGS

2012-01-10 Thread pellegrini
set_compiler_flags macro. Is that just a bug on the display or is there something wrong with my settings ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France macro(set_compiler_flags) get_filename_component(COMPILER_NAME ${CMAKE_Fortran_COMPILER

Re: [CMake] RC compiler on Linux - new problem

2012-01-04 Thread pellegrini
-- Check for working Fortran compiler: /home/cs/pellegrini/bin/ifort -- Check for working Fortran compiler: /home/cs/pellegrini/bin/ifort -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /home/cs/pellegrini/bin/ifort supports Fortran 90

[CMake] Determine 32 vs 64 bit cpu

2011-12-22 Thread pellegrini
() set(arch_64 FALSE) endif() thanks a lot and merry Christmas ! Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] RC compiler on Linux - new problem

2011-10-25 Thread pellegrini
Eric pellegrini a écrit : thanks a lot Michael. Finally, this was not such a trivial problem but I should find my way with the examples you gave me. Eric Michael Hertling a écrit : On 10/21/2011 06:49 PM, pellegrini wrote: Hi all, after digging and googling some hours I did a first step

Re: [CMake] RC compiler on Linux - new problem - solved

2011-10-24 Thread pellegrini
thanks a lot Michael. Finally, this was not such a trivial problem but I should find my way with the examples you gave me. Eric Michael Hertling a écrit : On 10/21/2011 06:49 PM, pellegrini wrote: Hi all, after digging and googling some hours I did a first step in the right direction

[CMake] RC compiler on Linux

2011-10-21 Thread pellegrini
to make cmake recognize and compile a rc file ? thanks Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] RC compiler on Linux - new problem

2011-10-21 Thread pellegrini
thanks for your help Eric pellegrini a écrit : Hi all, I use CMake 2.8.5 on Linux and Windows machine to build a Fortran project. On Windows, no problem, the build and the resulting GUI are OK. On Linux, the build seems to be OK but the resulting GUI gives an empty screen

[CMake] Mixing static and dynamic library

2011-10-13 Thread pellegrini
time (ld: cannot find -lXm). Would you have any idea of what is going wrong with my settings ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

[CMake] Linker flags not considered

2011-10-12 Thread pellegrini
the /stack:12800 flag). I also try (by the way what is the difference ?): set(LINK_FLAGS /stack:12800 /subsystem:windows) but it also produced the same unwanted effect. did I miss something somewhere ? thanks for your help Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin

Re: [CMake] Linker flags not considered - solved

2011-10-12 Thread pellegrini
that's work ! Great ! Thanks a lot Rolf Rolf Eike Beer a écrit : On Mi., 12. Okt. 2011 17:05:52 CEST, pellegrini pellegr...@ill.fr wrote: Hi all, I would like to build a project using intel fortran compiler. When building the project I would like to add/change two linker flags

[CMake] CPACK_RESOURCE_FILE_WELCOME has no effect with NSIS

2011-10-11 Thread pellegrini
for your help Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http

Re: [CMake] CPACK_RESOURCE_FILE_WELCOME has no effect with NSIS - solved

2011-10-11 Thread pellegrini
This option is valid only for PackageMaker generator. I was not careful enough when looking at the doc :-[ sorry Eric pellegrini a écrit : Hi all, I would like to package my application using CPACK/NSIS generator. Using the following line: set(CPACK_RESOURCE_FILE_WELCOME

[CMake] modifying the PATH during NSIS intallation

2011-10-06 Thread pellegrini
) that fall in the scope of CPACK_INSTALL_COMMANDS ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] Sharing objects between executables - solved

2011-10-05 Thread pellegrini
thanks for your help Alexander Michael. Eric Michael Hertling a écrit : On 10/04/2011 10:42 AM, pellegrini wrote: Hi all, I would need your advise about the strategy to adopt when two executables share common object files. Sharing object files among different targets might mean

[CMake] Sharing objects between executables

2011-10-04 Thread pellegrini
to my purpose ? If this is the second one: is there an easy way to get/specify the list of the object files generated during the pfind build ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware

[CMake] Sharing objects between executables

2011-10-04 Thread pellegrini
the best to my purpose ? If this is the second one: is there an easy way to get/specify the list of the object files generated during the console_prog build ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other

[CMake] multiple source directories

2011-09-28 Thread pellegrini
with relative path when declaring the sources for a project. I tried using the option CMAKE_USE_RELATIVE_PATHS but it might not be defined for that purpose as it did not solve the problem. Would you have any idea how to solve that problem ? thanks a lot Eric -- Eric Pellegrini Calcul

Re: [CMake] multiple source directories - solved

2011-09-28 Thread pellegrini
thanks for the hints and your help, guys. Indeed, There was one '..\' too much in my source files path. Eric Andreas Pakulat a écrit : On 28.09.11 12:51:53, pellegrini wrote: Hi all, I have a project with the following structure: root/ CMakeLists.txt prog1/ CMakeLists.txt

[CMake] The output of cpack is an empty file

2011-09-27 Thread pellegrini
archive is empty. No README inside and more disturbing no prog1, prog2, prog3 executables. I may have miss something when reading the examples but I still have not found what. Would you have any idea ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble

Re: [CMake] The output of cpack is an empty file - solved

2011-09-27 Thread pellegrini
Eric Noulard a écrit : 2011/9/27 pellegrini pellegr...@ill.fr: Hi Eric, thanks for your quick answer. No, my subprojects do not contains any CPack directives neither include cpack. Should they ? Sorry my fingers slipped. Another message is coming to the list. You need an INSTALL

[CMake] LINKER FLAGS

2011-09-13 Thread pellegrini
this command will remove the list of flags that may be set by cmake (behaviour that I would like to avoid) or just append it to this list ? thanks Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ___ Powered

Re: [CMake] LINKER FLAGS

2011-09-13 Thread pellegrini
thanks for the hint Eric Michael Eric Michael Wild a écrit : On 09/13/2011 10:35 AM, pellegrini wrote: Hi all, I would like to build a Fortran90 project using Fortran intel compiler. I would like to increase the stack by adding the /stack flag to the linker. Looking on the documentation

[CMake] 64 bit flags

2011-09-09 Thread pellegrini
time or do I have to declare those flags through, for example, a '-D option ? thanks Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Fwd: 64 bit flags

2011-09-09 Thread pellegrini
Thanks a lot Eric for the clear explanation. Eric Eric Noulard a écrit : I did forget the ML. -- Forwarded message -- From: Eric Noulard eric.noul...@gmail.com Date: 2011/9/9 Subject: Re: [CMake] 64 bit flags To: pellegrini pellegr...@ill.fr 2011/9/9 pellegrini pellegr

[CMake] EXECUTABLE_OUTPUT_PATH vs RUNTIME_OUTPUT_DIRECTORY

2011-07-22 Thread pellegrini
the following files are created alongside my executable: - myexec.exe.embed.manifest - myexec.exe.embed.manifest.res - myexec.exe.intermediate.manifest - myexec.exe.resource.txt - myexec.ilk is there a way to get rid of these files ? thanks a lot Eric -- Eric Pellegrini Calcul

Re: [CMake] EXECUTABLE_OUTPUT_PATH vs RUNTIME_OUTPUT_DIRECTORY

2011-07-22 Thread pellegrini
Michael Wild a écrit : On 07/22/2011 03:46 PM, pellegrini wrote: Hello everybody, I use CMake 2.8.4, Fortran 90 and Intel compiler to build an executable. I read in the documentation that RUNTIME_OUTPUT_DIRECTORY supercedes the old EXECUTABLE_OUTPUT_PATH command. When using

[CMake] Problem running cmake 2.8.4 on Ubuntu 10.04

2011-07-06 Thread pellegrini
identification is Intel -- Check for working Fortran compiler: /home/pellegrini/bin/ifort -- Check for working Fortran compiler: /home/pellegrini/bin/ifort -- works -- Detecting Fortran compiler ABI info CMake Error at /home/pellegrini/Downloads/cmake-2.8.4-Linux-i386/share/cmake-2.8/Modules

Re: [CMake] Problem running cmake 2.8.4 on Ubuntu 10.04

2011-07-06 Thread pellegrini
2.8.0, 2.8.1, 2.82 works and starting from 2.8.3 the ABI steps fails. I may be wrong but it seems to be related to some addings in the version 2.8.3 and 2.8.4. Eric Alan W. Irwin a écrit : On 2011-07-06 11:36+0200 pellegrini wrote: Hello everybody, I have troubles running cmake 2.8.4 on my

[CMake] Post-build copy

2011-07-01 Thread pellegrini
but nothing happens: ADD_CUSTOM_COMMAND( TARGET crysfml POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory my_dir2 COMMAND ${CMAKE_COMMAND} -E copy_directory my_dir1 my_dir2) Am I doing something wrong ? Any idea ? thanks a lot See you Eric -- Eric Pellegrini Calcul

[CMake] Strange behaviour with -D option

2011-07-01 Thread pellegrini
the last word. There should be something I completely missed. thanks a lot see you Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

[CMake] Multiple output directories

2011-06-28 Thread pellegrini
. Any idea ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[CMake] Resource file skipped without warning

2011-04-13 Thread pellegrini
) ### I also read that there was a bug (http://www.cmake.org/Bug/view.php?id=4068) with CMake concerning ignored rc files without warning. Does my case fall in that category ? Would you have any hint to circumvent that problem ? thanks a lot Eric -- Eric Pellegrini Calcul

[CMake] Problem using Lahey Fortran Compiler

2010-12-09 Thread pellegrini
works ? any idea thansks Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

[CMake] Merge two static libraries

2010-10-05 Thread pellegrini
Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check

Re: [CMake] Merge two static libraries

2010-10-05 Thread pellegrini
: On 5-10-2010 at 10:10, in message 4caadd79.7000...@ill.fr, pellegrini pellegr...@ill.fr wrote: Hello everybody, I have a library that can be built for a use in different modes (console, window). It is made of two sets of files. The first one is common to the console

Re: [CMake] Merge two static libraries

2010-10-05 Thread pellegrini
library? You could also use shared libraries (DLLs), but I guess that's out of the question for you, since you've been talking about static libraries only. Best regards, Marcel Loose. On Tue, 2010-10-05 at 10:45 +0200, pellegrini wrote: in fact the makefile we would like to generate should

[CMake] Build several libraries with different compilation flags

2010-10-01 Thread pellegrini
...) set_source_files_properties(file1, file2 ... PROPERTIES COMPILE_FLAGS ...) add_library(my_lib2, STATIC, src_files ...) set_source_files_properties(file1, file2 ... PROPERTIES COMPILE_FLAGS ...) does cmake sensitive to the order of these instruction ? thank you very much Eric -- Eric Pellegrini Calcul

Re: [CMake] Build several libraries with different compilation flags

2010-10-01 Thread pellegrini
instead of the source file properties. Ryan On 10/01/2010 08:27 AM, pellegrini wrote: Hello everybody, I would like to build two libraries that contain the same files but with a slightly different set of compilation flags from one library to another. This within the same makefile. I

Re: [CMake] Build several libraries with different compilation flags

2010-10-01 Thread pellegrini
to compile them again for my_lib2, because the object files are already up-to-date. I guess you'll have a better chance using target_properties, as Ryan suggested. HTH, Marcel Loose. On Fri, 2010-10-01 at 17:10 +0200, pellegrini wrote: Hi Ryan, Yes, that might be the solution if I wanted

[CMake] cmake do not read my ifort compiler fllags

2010-09-29 Thread pellegrini
to be the ones set in the Modules/Platform/Windows-ifort.cmake cmake distribution, as if that file was parsed instead of mine ! would you have any idea ? thanks Eric -- Eric Pellegrini Calcul Scientifique Insitut Laue-Langevin Grenoble, France

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

2010-09-29 Thread pellegrini
to be the ones set in the Modules/Platform/Windows-ifort.cmake cmake distribution, as if that file was parsed instead of mine ! However, when I put a message(hello) inside my file, it appears when building the cmake files. would you have any idea ? thanks Eric -- Eric Pellegrini Calcul

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

[CMake] linker associated to ifort fortran compiler

2010-09-29 Thread pellegrini
'lib', how cmake did find the appropriated linker ? thanks Eric -- Eric Pellegrini Calcul Scientifique Insitut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

[CMake] Overriding intel default compiler flags

2010-09-29 Thread pellegrini
-- Eric Pellegrini Calcul Scientifique Insitut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ

[CMake] Build library with specific compil flags for a few files

2010-09-28 Thread pellegrini
to esacpe from this kind of implementation ? is that so ugly ? thanks Eric -- Eric Pellegrini Calcul Scientifique Insitut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Build library with specific compil flags for a few files

2010-09-28 Thread pellegrini
boss that using CMake is the right solution ... thanks again Eric On 28. Sep, 2010, at 16:08 , pellegrini wrote: Hello everybody, I have a library for which almost all the files should be compiled (e.g. g95) with the same compilation flags (that I will call later flag_debug, flag_release

[CMake] set_target_properties versus set_source_files_properties

2010-09-22 Thread pellegrini
-O3 -std=f2003 -funroll-loops -msse2). Am I right ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Insitut Laue-Langevin Grenoble, France ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com