Re: [CMake] How do I enter an empty string to a cmake -i variable request?

2012-08-31 Thread David Cole
Did you try ""? Is a " " character equivalent to an empty string in this variable's case? Or "NOTFOUND"? (I'm not sure it's possible, haven't looked at that code...) On Thu, Aug 30, 2012 at 5:00 PM, Randolph M. Fritz wrote: > > -- > Randolph M. Fritz • rfr...@lbl.gov > Environmental Energy T

[CMake] FindBLAS module

2012-08-31 Thread Bogdan Cristea
Hi I am trying to find blas API using find_package ( BLAS REQUIRED ) In my case I am trying to use ACML, but cmake fails to find blas with the following error: CMake Error at /usr/share/cmake/Modules/FindBLAS.cmake:612 (message): A required library with BLAS API not found. Please specify li

[CMake] Fwd: source_group(), Xcode projects

2012-08-31 Thread James Turner
[Cmake 2.8,9, Xcode 4.4] Based on comments here, the Wiki, the manual, and many other places, I have the impression that source_group() should 'just work' with Xcode. But my experience is that no matter what I do, CMake acts as if I didn't write the source_group command at all - everything en

[CMake] FindXXX capitalization recommendation for new modules

2012-08-31 Thread Daniele E. Domenichelli
Hello, I tried to find this out, but I cannot find a clear answer to this question: what are the capitalization recommendation when writing a _new_ module? Let's say the library name is "X" The module file should be FindX.cmake or FindX.cmake? The variables - X_FOUND or X

Re: [CMake] FindXXX capitalization recommendation for new modules

2012-08-31 Thread David Cole
The best thing is to not write new find modules... Rather, have the project itself provide a project/package config file that CMake's find_package can find without a find module. Do you have to write a new find module? What package is it for? On Fri, Aug 31, 2012 at 11:49 AM, Daniele E. Domenic

[CMake] adding to CMAKE_CXX_FLAGS

2012-08-31 Thread philrosenberg
Hi This is my first post to the CMAKE mailing list and I'm a complete CMAKe beginner so please go easy on me. I'm trying to compile a library using visual studio that uses CMAKe as its build system and want to add some extra command line options to the compilation. Specifically /MT to link statica

Re: [CMake] FindBLAS module

2012-08-31 Thread Bogdan Cristea
On Friday 31 August 2012 17:59:38 you wrote: > did you try to set the variable BLA_VENDOR to ACML? Tried with this: cmake .. -DBLA_VENDOR=ACML_MP but I get another error message: CMake Error at /usr/share/cmake/Modules/FindBLAS.cmake:293 (list): list index: 0 out of range (-0, 18446744073709551

Re: [CMake] FindBLAS module

2012-08-31 Thread Andreas Naumann
I remember the same problem, but could not figure it out. Which cmake version are you using? Am 31.08.2012 19:30, schrieb Bogdan Cristea: On Friday 31 August 2012 17:59:38 you wrote: did you try to set the variable BLA_VENDOR to ACML? Tried with this: cmake .. -DBLA_VENDOR=ACML_MP

Re: [CMake] FindBLAS module

2012-08-31 Thread Bogdan Cristea
On Friday 31 August 2012 19:56:35 Andreas Naumann wrote: > I remember the same problem, but could not figure it out. > Which cmake version are you using? cmake version 2.8.6 I have read somewhere that acml5.1.0 is not supported by cmake, but I am not sure if this problem has been fixed or not.

Re: [CMake] FindXXX capitalization recommendation for new modules

2012-08-31 Thread Daniele E. Domenichelli
On 31/08/12 17:59, David Cole wrote: The best thing is to not write new find modules... Rather, have the project itself provide a project/package config file that CMake's find_package can find without a find module. Do you have to write a new find module? What package is it for? Actually I do

[CMake] Incremental linking and Intel fortan

2012-08-31 Thread Alexander Ivanov
Hello all! I am trying to adopt cmake for fortran based project. This is my first CMakeLists.txt for fortran. CMAKE_MINIMUM_REQUIRED(VERSION 2.8) SET(CMAKE_EXE_LINKER_FLAGS "/INCREMENTAL:NO" CACHE STRING "EXE_LINKER_FLAGS" FORCE) PROJECT(TestF90 Fortran) ADD_EXECUTABLE (TestF90_EXE main.f90)

[CMake] Check for C++ functions existence

2012-08-31 Thread Bogdan Cristea
Is there an equivalent for CHECK_FUNCTION_EXISTS in order to check for C++ function existence. Bogdan -- 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://w

Re: [CMake] FindBLAS module

2012-08-31 Thread Andreas Naumann
Am 31.08.2012 19:58, schrieb Bogdan Cristea: On Friday 31 August 2012 19:56:35 Andreas Naumann wrote: I remember the same problem, but could not figure it out. Which cmake version are you using? cmake version 2.8.6 I have read somewhere that acml5.1.0 is not supported by cmake, but I

[CMake] cmake-gui is not able to create a project on mac os x

2012-08-31 Thread Claus Klein
What is the different between cmake.app and cmake-gui? When i try to create a new project with cmake-gui started from shell it always fail. But the GUI version from /Application works fine. claus-kleins-macbook-pro:ftplib clausklein$ cmake-gui -G Ninja /Users/ clausklein/Workspace/cpp/ftp