Re: [CMake] ExternalProject git checkout --depth=1 ???

2015-01-09 Thread Yngve Inntjore Levinsen
Hi, Have a look here: http://www.cmake.org/Bug/view.php?id=15291 You should be able to use, for the time being, DOWNLOAD_COMMAND and UPDATE_COMMAND to achieve this. (have not tested myself) Hope this helps. Cheers, Yngve On 08/01/15 23:58, Kent Williams wrote: I'm building the Mozilla

Re: [CMake] version-info module?

2014-05-13 Thread Yngve Inntjore Levinsen
Hi, Do you meen as in set_target_properties(mytarget PROPERTIES VERSION 1.0 SOVERSION 1) ? Cheers, Yngve Den 12. mai 2014 19:24, skrev Orion Poplawski: Is anyone aware of a cmake module that would be the equivalent of the -version-info mechanism in libtool for generating VERSION and

Re: [CMake] find_package(MPI) overriding set(MPIEXEC) in CmakeList.txt

2014-01-12 Thread Yngve Inntjore Levinsen
to change anything in the Advanced menu. Any other ideas are appreciated. Thanks Lucas From: cmake-boun...@cmake.org [cmake-boun...@cmake.org] on behalf of Yngve Inntjore Levinsen [yngve.levin...@gmail.com] Sent: Friday, January 10, 2014 5:33 AM

Re: [CMake] find_package(MPI) overriding set(MPIEXEC) in CmakeList.txt

2014-01-10 Thread Yngve Inntjore Levinsen
Hi, Did Den 09. jan. 2014 22:49, skrev Pettey . Lucas: Hello, On a Cray XE6, I am using find_package(MPI REQUIRED) in my CMakeLists.txt. It correctly finds all of the MPI stuff, except that it sets the MPIEXEC to the login node mpiexec command. I would like to override this behavior and

Re: [CMake] ExternalProject_Add examples

2013-10-28 Thread Yngve Inntjore Levinsen
Den 17. mars 2012 22:03, skrev Bill Lorensen: Folks, I've recently created a number of super builds using CMake's External Project mechanism. Each external project requires some sort of download, configuration, build and possibly install. The CMake defines needed to correctly access the

Re: [CMake] try_run or similar to find available Fortran integer kinds

2013-09-20 Thread Yngve Inntjore Levinsen
Hi Zaak, Based on the test for fortran compilers, couldn't you do something similar? As I am no fortran expert I am not really sure which types you are looking for, but I would suspect you could get what you want based on the attached example? Cheers, Yngve Den 19. sep. 2013 22:03, skrev Zaak

[CMake] signature separator

2013-09-04 Thread Yngve Inntjore Levinsen
Hi all, I just noticed in Thunderbird (not sure how general this is), signatures are marked with -- (ie two dashes AND a space). The powered by kitware signature is appended with only two dashes. Would it be possible to request that you mark it with an extra space? Or is this just a specific

Re: [CMake] signature separator

2013-09-04 Thread Yngve Inntjore Levinsen
Den 04. sep. 2013 14:13, skrev Bill Hoffman: On 9/4/2013 7:35 AM, Rolf Eike Beer wrote: No, and this seems to be a problem with mailman. At least that is what I was told when I brought up the topic a while ago and the Kitware guys tried to solve it. Sadly the signature became even larger since

[CMake] macro/functions in ctest scripts

2013-08-08 Thread Yngve Inntjore Levinsen
Hi, I have a project where we use ctest/cdash but not cmake. I wanted to add a macro, but it looks like it doesn't support arguments correctly? (differing from the documentation in 'ctest --help-command macro') I tried to add this to the CTestTestfile.cmake: macro(hello MESSAGE)

Re: [CMake] macro/functions in ctest scripts

2013-08-08 Thread Yngve Inntjore Levinsen
Den 08. aug. 2013 15:24, skrev Jakub Zakrzewski: Hi, macro(hello MESSAGE) message(${MESSAGE}) endmacro(hello) hello(Hello World) You're expecting MESSAGE to be variable name but you call it with string value. So message(${MESSAGE}) evaluates to message(${Hello World}) and this to

Re: [CMake] macro/functions in ctest scripts

2013-08-08 Thread Yngve Inntjore Levinsen
Den 08. aug. 2013 17:32, skrev Matthew Woehlke: That said, have you tried naming the variable other than the name of a built-in command? I could imagine that might cause problems... Yes, I did not notice this problem by writing the hello world macro initially. My macro was something along the

Re: [CMake] macro/functions in ctest scripts

2013-08-08 Thread Yngve Inntjore Levinsen
Den 08. aug. 2013 17:36, skrev Jakub Zakrzewski: Hi, a neee - just ignore this - I need more sleep... This indeed looks like a correct piece of code. Moreover - it works perfectly with my ctest... No problem. I noticed that if I add this in the ctest run script, i.e. the script I execute

Re: [CMake] Compiling Fortran Modules And

2013-05-15 Thread Yngve Inntjore Levinsen
Den 13. mai 2013 20:08, skrev Pritchett-Sheats, Lori: Each dir* has *.F files that must be preprocessed to *.f90 files and then compiled. Hi, Just to give my two cents here. The standard filenaming scheme for fortran files are unless otherwise specified in the compile/preprocessing flags (as

Re: [CMake] How to install Fortran module files?

2013-05-10 Thread Yngve Inntjore Levinsen
Hi, If you set the CMAKE_Fortran_MODULE_DIRECTORY variable, then all module files by default will be built into this folder. In our case we set this to ${CMAKE_BINARY_DIR}/fortran. Since nothing else is in this folder, you have a fairly good control over where your mod files are if you want to

Re: [CMake] patch proposal for PythonInterp

2013-04-15 Thread Yngve Inntjore Levinsen
On 12. april 2013 18:45, Rolf Eike Beer wrote: Yes, I will take a look. So far it looks not too bad. Yngve, please make the changes Brad requested and squash both patches together so I need to review only those changes that you really intend to do. Done:

Re: [CMake] patch proposal for PythonInterp

2013-04-11 Thread Yngve Inntjore Levinsen
On 21. mars 2013 18:30, Rolf Eike Beer wrote: Yngve Inntjore Levinsen wrote: On 21. mars 2013 12:00, Rolf Eike Beer wrote: Am 21.03.2013 11:03, schrieb Yngve Inntjore Levinsen: Hi, I have a suggestion for the PythonInterp. On a system I am compiling my code on, I need

Re: [CMake] patch proposal for PythonInterp

2013-04-11 Thread Yngve Inntjore Levinsen
that the second patch reverts the changes in the first patch (which is the one I sent earlier). Best Regards, Yngve From 861cfe1ee2b65e99d2b402b2dcdca84fac71a14a Mon Sep 17 00:00:00 2001 From: Yngve Inntjore Levinsen yngve.levin...@gmail.com Date: Thu, 11 Apr 2013 19:59:55 +0200 Subject: [PATCH 1/2] first

Re: [CMake] The else() in CMAKE_TOOLCHAIN_FILE

2013-04-03 Thread Yngve Inntjore Levinsen
On 03. april 2013 13:13, Johannes Zarl wrote: Hi, On Tuesday, 2. April 2013, 06:42:47, Ashi wrote: I think I find something to explain this: the config.cmake(the CMAKE_TOOLCHAIN_FILE) is reloaded several times. on first-load, the A is set, but on second-load and later-load, the A is not set.

Re: [CMake] How to configure Fortran compiler, flags, and so on.

2013-04-02 Thread Yngve Inntjore Levinsen
Hi, If you define variables in your environment before configuring cmake they will be read by cmake. The following environment variables (maybe I forget some) are relevant for fortran code: FC = fortran compiler FFLAGS = fortran flags (added to default flags) LDFLAGS = linker flags (any

Re: [CMake] Quick question: CMAKE_CXX_FLAGS vs CMAKE_CXX_COMPILE_FLAGS

2013-04-02 Thread Yngve Inntjore Levinsen
Hi, I believe compile flags are *not* used during linking, while CMAKE_CXX_FLAGS will also be used during linking (if your linker language is C++). I do not know of any other differences, but perhaps an expert wants to correct me.. Cheers, Yngve On 02. april 2013 11:21, Daniel Carrera wrote:

[CMake] patch proposal for PythonInterp

2013-03-21 Thread Yngve Inntjore Levinsen
Hi, I have a suggestion for the PythonInterp. On a system I am compiling my code on, I need to find the python binary which is newer than 2.5. However, the default /usr/bin/python is 2.4. If I then set the variable (which is not documented in the header by the way) PythonInterp_FIND_VERSION to

Re: [CMake] patch proposal for PythonInterp

2013-03-21 Thread Yngve Inntjore Levinsen
On 21. mars 2013 12:00, Rolf Eike Beer wrote: Am 21.03.2013 11:03, schrieb Yngve Inntjore Levinsen: Hi, I have a suggestion for the PythonInterp. On a system I am compiling my code on, I need to find the python binary which is newer than 2.5. However, the default /usr/bin/python is 2.4

Re: [CMake] adding program suffix

2013-03-11 Thread Yngve Inntjore Levinsen
On 11/03/13 08:57, Chandan Choudhury wrote: -- Chandan kumar Choudhury NCL, Pune INDIA On Mon, Mar 11, 2013 at 1:19 PM, Michael Wild them...@gmail.com mailto:them...@gmail.com wrote: On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury iitd...@gmail.com

Re: [CMake] adding program suffix

2013-03-11 Thread Yngve Inntjore Levinsen
On 11/03/13 09:24, Eric Noulard wrote: I think Chandan meant globally for all executables. That's the purpose of CMAKE_EXECUTABLE_SUFFIX as already pointed out by Michael. see : cmake --help-variable CMAKE_EXECUTABLE_SUFFIX Now it doesn't seems to work for Chandan. I guess the variable

Re: [CMake] adding program suffix

2013-03-11 Thread Yngve Inntjore Levinsen
.. -DCMAKE_INSTALL_PREFIX=/soft/sudip/abc/apps/gromacs/461 -DCMAKE_EXECUTABLE_SUFFIX=_461 make -j 12 make install Chandan -- Chandan kumar Choudhury NCL, Pune INDIA On Mon, Mar 11, 2013 at 2:26 PM, Yngve Inntjore Levinsen yngve.levin...@gmail.com mailto:yngve.levin...@gmail.com wrote: On 11/03/13

[CMake] help with lahey (fortran) patch

2013-02-26 Thread Yngve Inntjore Levinsen
Hello, I am in the process of preparing a patch proposal for the Lahey/Fujitsu Fortran compiler (lf95). As I am not a programming expert nor a cmake expert, I tried to base myself on the already available files for Intel/NAG and friends in the Modules directory. Some specific questions in

Re: [CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-15 Thread Yngve Inntjore Levinsen
Hello, On 15/02/13 15:41, Martin Koller wrote: I'm just not sure if it is enough to change the compiler flags or if there is more to change (paths etc.) This is why I prefer toolchain files over adding an option inside the CMakeLists.txt files. On some systems you probably also want to change

Re: [CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-15 Thread Yngve Inntjore Levinsen
It is true, I actually never had problems just adding -m32 on my machines, but I assumed some systems are more difficult than others.. But what do I know? :) Cheers, Yngve On 15/02/13 16:33, clin...@elemtech.com wrote: Or simply specify -m32 at the first configure CFLAGS=-m32 CXXFLAGS=-m32

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-08 Thread Yngve Inntjore Levinsen
On 7/2/13 7:54 PM, Patrick Johnmeyer wrote: On Thu, Feb 7, 2013 at 12:41 PM, Yngve Inntjore Levinsen yngve.levin...@gmail.com mailto:yngve.levin...@gmail.com wrote: I think you are fighting the tool in any case, because you are asking to build multiple configurations in one build

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Yngve Inntjore Levinsen
Did you try to create two targets and add per-target compile flags? Something along the lines of add_library(mylib_rel ${sources}) add_library(mylib_dbg ${sources}) set_target_properties(mylib_rel PROPERTIES COMPILE_FLAGS -O3) set_target_properties(mylib_dbg PROPERTIES COMPILE_FLAGS -O0 -g) Not

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Yngve Inntjore Levinsen
(...) set_target_properties(...) install(...) endif() Cheers, Yngve On 02/07/2013 07:26 PM, Patrick Johnmeyer wrote: On Thu, Feb 7, 2013 at 3:12 AM, Yngve Inntjore Levinsen yngve.levin...@gmail.com mailto:yngve.levin...@gmail.com wrote: Did you try to create two targets and add per-target

Re: [CMake] have problem when I precompile *.f90 with -fpp using ifort

2012-07-21 Thread Yngve Inntjore Levinsen
Hi, Just a wild guess here. Since people often write fortran code starting from column 7, they tend to forget that preprocessor statements have to start at column 1 (I'm talking from personal head-scratching)... Do you have any spaces before the #? If so, remove them and try again. It does

Re: [CMake] Easier way to override variables

2012-07-18 Thread Yngve Inntjore Levinsen
Hi Romain, Have a look at the help for the function set: $ cmake --help-command set If I understand the documentation, this should be what you are looking for: set(MY_VAR NEW_VALUE FORCE) Cheers, Yngve On Wednesday 18. July 2012 15.49.31, Romain LEGUAY wrote: Hello everyone, I don't find

Re: [CMake] set ranlib/ar in toolchain file

2012-07-05 Thread Yngve Inntjore Levinsen
. If it is expected, perhaps one could add the information about how this variable work to the Wiki pages for toolchains? Perhaps one could use this variable also when searching for the compilers and linkers? Cheers, Yngve On Wednesday 4. July 2012 22.19.49, Eric Noulard wrote: 2012/7/4 Yngve Inntjore

Re: [CMake] set ranlib/ar in toolchain file

2012-07-05 Thread Yngve Inntjore Levinsen
Hi Eric, On Thursday 5. July 2012 10.22.17, Eric Noulard wrote: Which ranlib/ar was discovered by CMake? /usr/bin/ar and /usr/bin/ranlib. I need it to discover the ones with the mingw prefix. You did not give us the exact command line you use with the output given by the cmake run. The

Re: [CMake] set ranlib/ar in toolchain file

2012-07-05 Thread Yngve Inntjore Levinsen
Hi Eike and Eric, That was an incredible wild guess, you were spot on. Changing the title to PROJECT(project C CXX Fortran) instead of having Fortran first in the list solved it. Now both toolchain files work. Why is that though? Something buggy with the Fortran part in cmake? Thanks! Best

[CMake] set ranlib/ar in toolchain file

2012-07-04 Thread Yngve Inntjore Levinsen
Hi, I try to set up my toolchain file for building Windows executables in a Linux environment. I started with the example from http://www.cmake.org/Wiki/CmakeMingw The only thing I noticed was that I needed to use ar and ranlib from MinGW as well, for creating the archives. I can do this by

[CMake] set ranlib/ar in toolchain file

2012-07-04 Thread Yngve Inntjore Levinsen
Hi, I try to set up my toolchain file for building Windows executables in a Linux environment. I started with the example from http://www.cmake.org/Wiki/CmakeMingw The only thing I noticed was that I needed to use ar and ranlib from MinGW as well, for creating the archives. I can do this by

[CMake] cdash/coverage

2012-03-29 Thread Yngve Inntjore Levinsen
Dear developers, I have what I think is a minor confusion about how to set up a client to do coverage analysis. I have added the coverage flags to a new build type DebugCoverage, which also includes flags from the Debug build type. My ctest script now looks something like this (uninteresting

[CMake] CheckIncludeFiles problem

2012-02-02 Thread Yngve Inntjore Levinsen
Dear all, I have a problem with CheckIncludeFiles that I cannot figure out. I'm sure I'm just making a stupid mistake though, but I am unable to figure out what. The following code is in CMakeLists.txt: include(CheckIncludeFiles) check_include_files(readline/history.h HAVE_READLINE_HISTORY_H)

Re: [CMake] CheckIncludeFiles problem

2012-02-02 Thread Yngve Inntjore Levinsen
, 11:58 +0100 schrieb Yngve Inntjore Levinsen: Dear all, I have a problem with CheckIncludeFiles that I cannot figure out. I'm sure I'm just making a stupid mistake though, but I am unable to figure out what. The following code is in CMakeLists.txt: include(CheckIncludeFiles

Re: [CMake] CPack : OS X package installation directory

2011-12-28 Thread Yngve Inntjore Levinsen
Hi, Søndag 25. desember 2011 20.32.41 skrev Nicholas Yue: Hi, I would like to package up my software to install (via DMG and PKG) to the /Applications/my-software directory Is the variable CMAKE_INSTALL_PREFIX what you are looking for? Have a look at: cmake --help-variable

Re: [CMake] Setting a cmake option via make targets?

2011-11-02 Thread Yngve Inntjore Levinsen
Onsdag 02 november 2011 skrev szalai endre: Hi guys, I am using Rational Purify for runtime error checks in C++. To use it, you have to call purify instead of the C++ linker at link phase. To do so, I have the following cmake file: // project(myproject ) option (USE_PURIFY

Re: [CMake] Problems with FindPythonInterp

2011-10-11 Thread Yngve Inntjore Levinsen
Fredag 07 oktober 2011 skrev Yngve Inntjore Levinsen: Dear all, I have some configuration scripts in python that needs to be run for my project, so I use the FindPythonInterp package. This has nicely found the version 2.7 on my system so far, but now it suddenly finds /usr/bin/python

Re: [CMake] Problems with FindPythonInterp

2011-10-11 Thread Yngve Inntjore Levinsen
Onsdag 12 oktober 2011 skrev Campbell Barton: On Tue, Oct 11, 2011 at 10:50 PM, Yngve Inntjore Levinsen yngve.levin...@gmail.com wrote: Fredag 07 oktober 2011 skrev Yngve Inntjore Levinsen: Dear all, I have some configuration scripts in python that needs to be run for my project, so I

[CMake] Problems with FindPythonInterp

2011-10-07 Thread Yngve Inntjore Levinsen
Dear all, I have some configuration scripts in python that needs to be run for my project, so I use the FindPythonInterp package. This has nicely found the version 2.7 on my system so far, but now it suddenly finds /usr/bin/python which is a soft link to version 3.2. My script doesn't work

[CMake] cdash e-mail configuration

2011-08-24 Thread Yngve Inntjore Levinsen
Dear all, I feel a bit ignorant for asking this, but how do I get cdash to send e-mails? In the installation instructions it only states how to change default sent- from and reply-to addresses, but what do I need to actually configure on the server? My server is not sending out anything :(

[CMake] server paths on windows

2011-08-08 Thread Yngve Inntjore Levinsen
Dear developers, I believe I *potentially* have found a problem with cmake on windows. I had my project path starting with \\my.url\dfs\bla\bla\project, and when I tried to generate MinGW makefiles I got errors telling me that the compilers were broken. I moved my project to D:\bla\My

Re: [CMake] [CMAKE] problem with CMAKE_FIND_LIBRARY_SUFFIXES/FindBLAS/BLA_STATIC

2011-07-06 Thread Yngve Inntjore Levinsen
Tirsdag 05 juli 2011 16.25.49 skrev Yngve Inntjore Levinsen : Dear developers, I am having what looks like a problem with library suffixes which I am not able to figure out. Essentially, our project has an option which when turned on adds a -static to the compiler flags

[CMake] problem with CMAKE_FIND_LIBRARY_SUFFIXES/FindBLAS/BLA_STATIC

2011-07-05 Thread Yngve Inntjore Levinsen
Dear developers, I am having what looks like a problem with library suffixes which I am not able to figure out. Essentially, our project has an option which when turned on adds a -static to the compiler flags. This then obviously need any libraries to be static if one should use them. I then

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-29 Thread Yngve Inntjore Levinsen
Tirsdag 28 juni 2011 18.52.48 skrev Raphael Muenster : Yep, great) setting the LINKER_LANGUAGE to Fortran did it. Thanks, Raphael Am 28.06.2011 15:48, schrieb Brad King: On 06/27/2011 02:39 PM, Raphael Münster wrote: # name of the project PROJECT(Q2P1) enable_language (Fortran)

Re: [CMake] set custom linker in linux

2011-06-24 Thread Yngve Inntjore Levinsen
/bin/../lib/gcc/i686-android-linux/4.4.3/../../../../i686-android-linux/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status May be I can add -lc to linker command line? 2011/6/23 Yngve Inntjore Levinsen yngve.levin...@gmail.com: Torsdag 23 juni

Re: [CMake] set custom linker in linux

2011-06-23 Thread Yngve Inntjore Levinsen
Torsdag 23 juni 2011 13.34.24 skrev gekso : Hello! Please, help to to set custom linker. I use gcc1/g++1 instead of basic gcc/g++ on system. I've tried to export CC/CXX, but I need to change linker from ld to g++1. Is it possible? ___ Powered by

[CMake] simple cdash script

2011-06-15 Thread Yngve Inntjore Levinsen
Dear developers, I am sure this has been answered before, but I cannot find the information. I apologize in advance for my ignorance. I have set up our project with cmake/ctest, and have a cdash server running. I have configured everything so that if I run in the source directory mkdir

[CMake] piping commands to executable

2011-05-18 Thread Yngve Inntjore Levinsen
Dear developers, I have a bit of an issue with ctest. In our project we usually generate a binary which we pipe in scripts with the commands we want to execute (some defined parser language). Now at first I would have liked to do something like ADD_TEST(testsample executable script.txt)

[CMake] cdash build name

2011-05-17 Thread Yngve Inntjore Levinsen
Dear developers, I apologize if this has been answered before. I have just set up CDash and I noticed that the build name in the report is typically Linux-c++ or similar. Now for our project Fortran is the main language, and we want to test on many different compilers. Hence I would prefer it

Re: [CMake] cdash build name

2011-05-17 Thread Yngve Inntjore Levinsen
First off, thanks for an abnormally quick reply! :) On Tuesday 17 May 2011 14.01.00 Rolf Eike Beer wrote: Yngve Inntjore Levinsen wrote: set(CTEST_BUILD_NAME ${osname}-${cpu}-prod) message(CTEST name: ${CTEST_BUILD_NAME}) When configuring the message shows the build name I would like

[CMake] osx 10.6 10.5 compability issue

2011-04-28 Thread Yngve Inntjore Levinsen
Dear all, I have compiled my code in OSX Snow Leopard, and then a colleague using OSX Leopard wanted to use the bundle. However, he had some strange error saying something like: dyld error: unknown required load command (sorry I don't have the exact error print at hand) I tried to google it

Re: [CMake] osx 10.6 10.5 compability issue

2011-04-28 Thread Yngve Inntjore Levinsen
. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Apr 28, 2011, at 11:58 AM, Yngve Inntjore Levinsen wrote: Dear all, I have compiled my code

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-17 Thread Yngve Inntjore Levinsen
(CPack) On Wednesday 16 February 2011 02:01:28 PM Eric Noulard wrote: 2011/2/16 Yngve Inntjore Levinsen yngve.levin...@gmail.com: The server OS is quite conservative when it comes to new packages, so I already had to go into a fight to get 2.6 series installed. I do not think

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-17 Thread Yngve Inntjore Levinsen
? If not, can I get it to be installable on both architectures somehow? - Why shouldn't I set the variable? Cheers, Yngve On Thursday 17 February 2011 11:35:40 AM Yngve Inntjore Levinsen wrote: Dear Eric, I have tried again a few times without success, and tried with the version 2.8.4 that you

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-16 Thread Yngve Inntjore Levinsen
executable. It is not necessary to provide this in an rpm of course, but it would be nice if it was possible. Thank you for your help! Cheers, Yngve On Tuesday 15 February 2011 08:10:23 PM Eric Noulard wrote: 2011/2/15 Yngve Inntjore Levinsen yngve.levin...@gmail.com: Dear CMakers, I am

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-16 Thread Yngve Inntjore Levinsen
On Wednesday 16 February 2011 11:31:47 AM Eric Noulard wrote: 2011/2/16 Yngve Inntjore Levinsen yngve.levin...@gmail.com: Dear Eric, First, thank you for a very quick reply! The log you requested is attached. The rpmbuild.out file is empty, and the rpmbuild.err has one line which

[CMake] cpack 32bit rpm on a 64bit system

2011-02-15 Thread Yngve Inntjore Levinsen
Dear CMakers, I am trying to package a 32bit binary on a 64bit system. It breaks with the (useless?) verbose output which follows below. What I could find of useful information was in _CPack_Packages/Linux/RPM/rpmbuild.err, which stated error: No compatible architectures found for build I

Re: [CMake] Detecting 32/64 bit systems

2011-02-14 Thread Yngve Inntjore Levinsen
I have done the same thing myself, using size of INT instead of P which is of course following the exact same logic. After attempting several strategies I found this one to be the safest way to detect 32/64bit systems, so I recommend using SIZEOF as well. Cheers, Yngve On Sunday 13 February

Re: [CMake] linking static vs dynamic

2011-02-14 Thread Yngve Inntjore Levinsen
If you want everything linked statically I believe you can use the variable, BUILD_SHARED_LIBS, something like OPTION( BUILD_SHARED_LIBS Set to OFF to build static libraries OFF ) I do believe it will still use dynamic libraries if static aren't available, but I am unsure about that part.

Re: [CMake] Detecting 32/64 bit systems

2011-02-14 Thread Yngve Inntjore Levinsen
Sorry, I meant LONG actually, I was a bit tired when I wrote the mail. Perhaps I should change to VOID instead, thanks for the tip. This was my previous code: INCLUDE(CheckTypeSize) CHECK_TYPE_SIZE (long LONG_SIZE) #4 if 32bit, 8 if 64bit... I don't actually build for Windows yet, so I suppose

Re: [CMake] CMake without C/C++ tests

2011-01-31 Thread Yngve Inntjore Levinsen
I was quite sure that you need your project to use at least one language, but that it does not need to be C/C++. If you have issues with the internal test then a special TOOLCHAIN file is the way to go. I had to do this for a special fortran compiler that only built 32bit packages on a 64bit

Re: [CMake] cpack bundle on osx

2011-01-21 Thread Yngve Inntjore Levinsen
system libraries and available on every OS X system. -- Mike Jacksonwww.bluequartz.net On Jan 20, 2011, at 6:15 AM, Yngve Inntjore Levinsen wrote: Thank you for your kind reply Michael, it got me some bit further and I think I understand a bit more. I could not see any examples of the usage

Re: [CMake] cpack bundle on osx

2011-01-21 Thread Yngve Inntjore Levinsen
...@bluequartz.net BlueQuartz Software Dayton, Ohio On Jan 21, 2011, at 5:10 AM, Yngve Inntjore Levinsen wrote: Thank you so much for your tips and help Michael! My stupid mistake as you can see it below is that I ran the install target command AFTER the fixup_bundle. Hence

Re: [CMake] cpack bundle on osx

2011-01-20 Thread Yngve Inntjore Levinsen
Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Jan 19, 2011, at 7:08 AM, Yngve Inntjore Levinsen wrote: Dear fellow cmake users, I am trying to create a bundle of my project that I build using CMake. I have tried using the DragNDrop

[CMake] cpack bundle on osx

2011-01-19 Thread Yngve Inntjore Levinsen
Dear fellow cmake users, I am trying to create a bundle of my project that I build using CMake. I have tried using the DragNDrop generator, which works to some extent. I do manage to create a .app folder which contains the one binary that is the outcome of the project in the Contents/MacOS

Re: [CMake] Extra include/lib paths - multiple entries

2010-11-21 Thread Yngve Inntjore Levinsen
On Thursday 18 November 2010 12:00:52 Adam J Richardson wrote: On Wed, 17 Nov 2010 13:12:42 +0100 Yngve Inntjore Levinsen yngve.levin...@gmail.com wrote: On Wednesday 17 November 2010 12:30:06 Adam J Richardson wrote: Is this a correct specification for multiple include/lib paths

Re: [CMake] Extra include/lib paths - multiple entries

2010-11-17 Thread Yngve Inntjore Levinsen
On Wednesday 17 November 2010 12:30:06 Adam J Richardson wrote: Hi list, Is this a correct specification for multiple include/lib paths in environment variables? If not, what should I use instead? Sometimes it seems to work, other times not...

Re: [CMake] pass compile flags to initial compiler test..

2010-09-23 Thread Yngve Inntjore Levinsen
a look at LIST(REMOVE_ITEM [LIST] [ITEM]), but I haven't used it for flags and I don't know if and how this works for strings, so it's just an idea...) - Hannes -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Yngve Inntjore Levinsen

Re: [CMake] CMake and Absoft Fortran compilers

2010-09-22 Thread Yngve Inntjore Levinsen
Do you know how to compile for Fortran in general? I don't know the Absoft compiler, but I've used some others. First off you need to enable Fortran language. This you can do by e.g. PROJECT(projectname Fortran CXX C) where you after the project name gives a list of the languages you use in

Re: [CMake] pass compile flags to initial compiler test.. now an assembler issue

2010-09-21 Thread Yngve Inntjore Levinsen
...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Yngve Inntjore Levinsen Sent: Montag, 20. September 2010 18:38 To: cmake@cmake.org Subject: Re: [CMake] pass compile flags to initial compiler test.. now an assembler issue Hi, Thank you for your very quick response Hannes! I

Re: [CMake] pass compile flags to initial compiler test..

2010-09-21 Thread Yngve Inntjore Levinsen
: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Yngve Inntjore Levinsen Sent: Dienstag, 21. September 2010 14:55 To: cmake@cmake.org Subject: Re: [CMake] pass compile flags to initial compiler test.. now an assembler issue Hi, Again Hannes, thank you for your help

[CMake] pass compile flags to initial compiler test

2010-09-20 Thread Yngve Inntjore Levinsen
I am trying to use a rather vanilla compiler for my CMake project (Lahey-Fujitsu lf95 fortran compiler). This compiler (or perhaps just the particular version I have available) does only compile 32bit binaries, so on 64bit systems the initial test fails. In order for the test to succeed I need