[CMake] Control CMake Verbosity?

2015-05-01 Thread Nikolaus Rath
Hello, Is there a way to adjust the amount or level of detail of the CMake progress messages? Especially with parallel make, the output isn't exactly pretty. For example: Scanning dependencies of target LR_shift [ 1%] [ 6%] [ 6%] [ 6%] [ 8%] [ 10%] [ 13%] [ 13%] Building Fortran object CMak

Re: [CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread Alan W. Irwin
On 2015-05-01 14:38+0200 Hendrik Sattler wrote: Am 1. Mai 2015 12:41:50 MESZ, schrieb David Cole via CMake : I would strongly recommend NOT having different minimum versions for Linux vs. everywhere else. I did something similar one but based on the generator. It might makes sense when you

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

2015-05-01 Thread Stephen Kelly
Robert Ramey wrote: > all things boost - which will touch upon CMake/CTest/CDash. I have > recommended CMake... for boost - like projects and would like to see it > more widely accepted. http://rrsd.com/blincubator.com/tools_cmak/ There are many typos on the page (and even in the url). You might

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

2015-05-01 Thread Parag Chandra
Yes, that’s pretty much the workflow I’m implementing, with the exception that Gradle drives everything, including CMake; not the other way around. Gradle is, in my opinion, somewhat more general purpose than CMake, which is laser-focused on dealing with native code, so I have structured our multi-

Re: [CMake] find_library while cross compiling?

2015-05-01 Thread Parag Chandra
Yes, you need to set them in the toolchain file - at least, that is how I did it for NaCl. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 5/1/15, 10:29 AM, "Rober

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

2015-05-01 Thread Robert Dailey
Honestly I hadn't set any expectations for the response I was going to get here. Your response is surprisingly hopeful IMHO. So basically the goal is to treat C++ completely separate from Java from a development, workflow, and build system perspective. In other words, if we need to debug native co

Re: [CMake] find_library while cross compiling?

2015-05-01 Thread Robert Dailey
Should I override these variables in the android toolchain file? On Thu, Apr 30, 2015 at 9:43 PM, Parag Chandra wrote: > 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

Re: [CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread Brad King
On 05/01/2015 06:25 AM, Alan W. Irwin wrote: > # First call to project so that CMAKE_SYSTEM_NAME is defined > project(plplot NONE) > if(CMAKE_SYSTEM_NAME STREQUAL "Linux") > cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) > else(CMAKE_SYSTEM_NAME STREQUAL "Linux") > cmake_minimum_requir

Re: [CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread Hendrik Sattler
Am 1. Mai 2015 12:41:50 MESZ, schrieb David Cole via CMake : >I would strongly recommend NOT having different minimum versions for >Linux vs. everywhere else. I did something similar one but based on the generator. It might makes sense when you generally want to support an older version but som

Re: [CMake] Problem with Fortran conditionals

2015-05-01 Thread Brad King
On 05/01/2015 02:56 AM, Arjen Markus wrote: > On 04/30/2015 06:04 PM, Nikolaus Rath wrote: >> I am not sure why CMake is trying to copy module files around It is copying the module to a timestamp file so that dependents don't have to rebuild if the module content didn't really change. Even if CMak

Re: [CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread David Cole via CMake
I would strongly recommend NOT having different minimum versions for Linux vs. everywhere else. What happens when developers "everywhere else" use newer CMake features? They CAN'T unless they conditionalize the use based on Linux or not... Choose the highest minimum you need, and use it everywhe

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

2015-05-01 Thread David Cole via CMake
You could also "encourage" the use of the FC env var by adding this to the very top of your CMakeLists file, before the project command: if(NOT "$ENV{FC}" MATCHES "ifort") message(FATAL_ERROR "please set the environment variable FC to the full path to ifort before running CMake") endif()

[CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread Alan W. Irwin
Hi Brad: I am trying to conform to your strong advice that for the top-level CMakeLists.txt file, the cmake_minimum_required(...) command should come before the project(...) command. However, I have just encountered a problem with that approach where I want to specify a different minimum version

Re: [CMake] Problem with Fortran conditionals

2015-05-01 Thread Arjen Markus
Hi Nikolaus, I think the parser for Fortran sources indeed does not take care of such conditionals (they are also compiler-dependent, COCO never really got off the ground). A workaround might be to define a dummy module by that name. As for the selection of the Fortran compiler, you might che