Re: [CMake] CMake, Android, and Eclipse ADT Integration

2015-04-30 Thread Parag Chandra
Hi Robert, This will be a bit long-winded, so bear with me. I¹m also cross-compiling for Android with CMake, and am currently using Eclipse ADT for much of my development. I have tried hard to make Eclipse work for both the Java and the C++ portions of my libraries and applications, but gave up af

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Jean-Christophe Fillion-Robin
Hi Nikolaus, May you could ask your user to invoke cmake with the -C argument allowing to specify an initial cache file with value specific to the environment ? It would for example contain: set(FC "ifort" CACHE PATH "Intel Fortran compiler") See http://www.cmake.org/cmake/help/v3.1/manual/cmak

Re: [CMake] find_library while cross compiling?

2015-04-30 Thread Parag Chandra
Hi Robert, I encountered a similar problem when I was cross-compiling for NaCl on Windows. You need to set various CMake variables that explicitly override things like the library suffix/prefix. For example, in my case I needed to set the following: set (CMAKE_STATIC_LIBRARY_PREFIX "lib") set (CM

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Nikolaus Rath
On 04/30/2015 03:27 PM, Bill Hoffman wrote: > On 4/30/2015 2:50 PM, Nikolaus Rath wrote: >> Hmm. My situation is a bit different. We have different Fortran >> compilers installed, but this specific one needs to be compiled using >> the intel compiler. But by default, CMake selects gfortran. >> >> A

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Bill Hoffman
On 4/30/2015 2:50 PM, Nikolaus Rath wrote: Hmm. My situation is a bit different. We have different Fortran compilers installed, but this specific one needs to be compiled using the intel compiler. But by default, CMake selects gfortran. At the moment I abort the build if FC != ifort, but this is

[CMake] Problem with Fortran conditionals

2015-04-30 Thread Nikolaus Rath
Hello, I am in the process of converting a bigger project from pure GNU Make to CMake - mostly because managing dependencies for the Fortran sources has become too painful. Things seem to be mostly working, but I'm hitting one problem. When trying to run the (CMake-generated) Makefile, it fails w

[CMake] CMake finding custom packages...

2015-04-30 Thread BRM via CMake
I'm trying to convert a project over to using CMake. We have a series of dependency libraries that we custom compile and link against.For a number of them there is no issue since CMake either has no module for them or there is nothing to link with.However, I am having trouble with a few of them.

[CMake] Statically link OpenMP on Mac gcc

2015-04-30 Thread Rob McDonald
I'm using MacPorts GCC 4.8 and CMake 3.2. I use 'FIND_PACKAGE( OpenMP )', and then use OpenMP_C_FLAGS and OpenMP_CXX_FLAGS appropriately. My application works on the machine that I build on. However, users without MacPorts GCC installed can't find libgomp.1.dylib on their machine. I'd like to t

Re: [CMake] CMake, Android, and Eclipse ADT Integration

2015-04-30 Thread Robert Dailey
On Wed, Mar 11, 2015 at 11:42 AM, Robert Dailey wrote: > I am implementing support for Android in my CMake scripts by using > custom commands to invoke 'ant' to build the final APK. If I do it > this way, and I generate for eclipse, how can I make sure it will > integrate with the ADT plugin? > >

[CMake] CMAKE_INSTALL_PREFIX not being used?

2015-04-30 Thread Tom Davis
I'm trying to install a project to /home/tom/usr/local instead of the standard /usr/local. I have tried the following: $ mkdir build && cd build $ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/tom .. At this point, I have a CMakeCache.txt file that contains the correct path. I have a cmake_install.cmak

[CMake] find_library while cross compiling?

2015-04-30 Thread Robert Dailey
I'm on Windows and I am cross compiling for Android NDK. I use find_library() with PATHS to hunt down some libssl.a files, plus a few others. However, find_library() says it can't find them. I'm assuming this is because I'm on Windows and it doesn't recognize *.a files as a valid library on that p

Re: [CMake] How to work around permission deficiencies of file(GENERATE...)?

2015-04-30 Thread Stephen Kelly
Alan W. Irwin wrote: > But please keep > in mind that the configure_file_generate function approach is itself a > temporary workaround, and for CMake users who need to configure files > that include generator expressions, a much cleaner approach will be > possible if CMake developers implement a c

Re: [CMake] How to work around permission deficiencies of file(GENERATE...)?

2015-04-30 Thread Alan W. Irwin
On 2015-04-30 19:54+0200 Stephen Kelly wrote: Alan W. Irwin wrote: However, until that is implemented (or configure_file(GENERATE ...) is implemented with the usual configure_file permission semantics which just copies the permissions of the source file) I need a method of setting file permiss

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Nikolaus Rath
On 04/30/2015 10:59 AM, Bill Hoffman wrote: > On 4/30/2015 12:52 PM, Nikolaus Rath wrote: >> Is there a way to set the Fortran compiler from CMakeLists.txt (instead >> of setting the FC environment when calling cmake)? > > No, not really. That is not the way CMake works. You want to avoid > user

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Bill Hoffman
On 4/30/2015 12:52 PM, Nikolaus Rath wrote: Hello, Is there a way to set the Fortran compiler from CMakeLists.txt (instead of setting the FC environment when calling cmake)? No, not really. That is not the way CMake works. You want to avoid users of your project to ever have to edit a CMakeLi

Re: [CMake] How to work around permission deficiencies of file(GENERATE...)?

2015-04-30 Thread Stephen Kelly
Alan W. Irwin wrote: > However, until that is implemented (or configure_file(GENERATE ...) is > implemented with the usual configure_file permission semantics which > just copies the permissions of the source file) I need a method of > setting file permissions at generate time. Is there currently

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Cedric Doucet
Hello, you should try to put set(FC /my/path/to/binaries/of/my/fortran/compiler/gfortran) in your CMakeLists.txt. Of course, you may replace gfortran by the compiler you want to use. Cédric - Mail original - > De: "Nikolaus Rath" > À: cmake@cmake.org > Envoyé: Jeudi 30 Avril 2015 18

[CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Nikolaus Rath
Hello, Is there a way to set the Fortran compiler from CMakeLists.txt (instead of setting the FC environment when calling cmake)? Thanks, -Nikolaus -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers vario

Re: [CMake] C++Now / BoostCon / Boost 2.0

2015-04-30 Thread Nagy-Egri Máté Ferenc via CMake
I wish you good luck on promoting CMake for Boost. Generally, I find the Boost libraries to be of good quality. However, the reason I fear depending on Boost in any of my projects is the aggravation to get various versions to build. Applications that depend on Boost and are shipped as a binary

Re: [CMake] Adding files to project that don't exist

2015-04-30 Thread Hendrik Sattler
Am 30. April 2015 14:04:08 MESZ, schrieb coo...@megaroms.co.uk: >Hi, > >I'm using Doxygen to generate my project documentation and have a >custom >target to do it. Like this: > >find_package( Doxygen ) > >if( DOXYGEN_FOUND ) >configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in >${CMAKE_CU

[CMake] Adding files to project that don't exist

2015-04-30 Thread coordz
Hi, I'm using Doxygen to generate my project documentation and have a custom target to do it. Like this: find_package( Doxygen ) if( DOXYGEN_FOUND ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY ) add_custom_target( doc

Re: [CMake] NMake VC13 Release generates Debug

2015-04-30 Thread David Cole via CMake
Wow! How do you even type an en dash on the command line? Must be copy/paste... ;-) Great catch, Nils. I just assumed it was the way it was rendered in email. On Thursday, April 30, 2015, Lutz Malchus wrote: > unbelievable ... > > T

Re: [CMake] NMake VC13 Release generates Debug

2015-04-30 Thread Lutz Malchus
unbelievable ... Thanks! 2015-04-30 11:36 GMT+02:00 Nils Gladitz : > On 04/30/2015 11:19 AM, Lutz Malchus wrote: > >> Hi CMaker, >> >> when i start >> >> cmake –DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" .. >> >> in a Visual Studio 13

Re: [CMake] NMake VC13 Release generates Debug

2015-04-30 Thread Nils Gladitz
On 04/30/2015 11:19 AM, Lutz Malchus wrote: Hi CMaker, when i start cmake –DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" .. in a Visual Studio 13 - x64 Command Line Client (with clear build-dir) I assume you mean Visual Studio 12 - 2013? "–DCMAKE_BUILD_TYPE=Release" is wrong. "-DCMAKE_BUIL

[CMake] NMake VC13 Release generates Debug

2015-04-30 Thread Lutz Malchus
Hi CMaker, when i start cmake –DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" .. in a Visual Studio 13 - x64 Command Line Client (with clear build-dir) nmake generates an debug-application instead of an release. Generating NMake-Makefiles with cmake-gui (out of the same Client) works. Generatin