[CMake] cmake-gui is not able to create a project on mac os x
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/ftplibpp-2.0.2 claus-kleins-macbook-pro:ftplib clausklein$ which cmake-gui /usr/bin/cmake-gui claus-kleins-macbook-pro:ftplib clausklein$ ls -lrta /usr/bin/cmake-gui lrwxr-xr-x 1 root staff 52 Aug 17 06:52 /usr/bin/cmake-gui -> / Applications/CMake 2.8-9.app/Contents/bin/cmake-gui claus-kleins-macbook-pro:ftplib clausklein$ cmake-gui --version /Applications/cmake CMake Error: CMake executable cannot be found at /Applications/cmake cmake version 2.8.9 claus-kleins-macbook-pro:ftplib clausklein$ cmake --version cmake version 2.8.9 claus-kleins-macbook-pro:ftplib clausklein$ Thanks in advance Best Regards Claus -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FindBLAS module
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 am not sure if this problem has been fixed or not. regards The current FindBLAS.cmake is more up to date and the last error should not occur. But I don't know, if it works. I think, those fixed paths in the find modules are a bad idea. But I don't know a lot about the acml module to do it better. Andreas -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Check for C++ functions existence
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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Incremental linking and Intel fortan
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) main.f90 looks like the following program TestF90 implicit none integer :: I = 1 I = I / 0 end program TestF90 Actually I would like to use /traceback option of the Intel compiler and it requires to turn off incremental linking for the traceback. The above (I mean setting of CMAKE_EXE_LINKER_FLAGS) works well for the similar C project, but Intel fortran ignores the option. I noticed that TestF90.vfproj file contains different settings depending on what I put in CMAKE_EXE_LINKER_FLAGS: LinkIncremental="1" - for "/INCREMENTAL:NO" LinkIncremental="2" - for "/INCREMENTAL:YES". Anyway linker property list shows "Default". After some experiments I found that if I change TestF90.vfproj manually and put LinkIncremental="linkIncrementalNo" then Intel fortran accepts the option. So how can I achieve the desirable behaviour? I use visual studio 2010, fortran 2011.9 and cmake 2.8.9. Thanks, Alexander -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FindXXX capitalization recommendation for new modules
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 don't have to write a new one, but I'm trying to clean up the mess with the Find modules used in Yarp [1] (You can find the modules here[2]). Our idea is to clean them following the guidelines, remove the duplicates and eventually contribute and maintain them upstream... We don't have many compatibility issues, so we are trying to do it properly... Cheers, Daniele [1]http://eris.liralab.it/yarp/ [2]http://yarp0.svn.sourceforge.net/viewvc/yarp0/trunk/yarp2/conf/ -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FindBLAS module
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. regards -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FindBLAS module
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 but I get another error message: CMake Error at /usr/share/cmake/Modules/FindBLAS.cmake:293 (list): list index: 0 out of range (-0, 18446744073709551615) same if I use -DBLA_VENDOR=ACML. LD_LIBRARY_PATH has the content: /opt/acml5.1.0/gfortran64_mp/lib/ -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FindBLAS module
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, 18446744073709551615) same if I use -DBLA_VENDOR=ACML. LD_LIBRARY_PATH has the content: /opt/acml5.1.0/gfortran64_mp/lib/ -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] adding to CMAKE_CXX_FLAGS
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 statically and /D UNICODE to compile with unicode support. I'd really like to do this at the command line as it's a third party library and i don't want to modify the project's CMAKE code if i can help it. I've spent a long time googling for solutions and the best I've found is to add -DCMAKE_CXX_FLAGS="/MT /D UNICODE" when I execute CMAKE. Unfortunately this seems to overwrite the 'normal' command line options so things like WIN32 don't get defined. Is there a better way to pass these options to these options to my compiler? Thanks in advance Phil -- View this message in context: http://cmake.3232098.n2.nabble.com/adding-to-CMAKE-CXX-FLAGS-tp7581457.html Sent from the CMake mailing list archive at Nabble.com. -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FindXXX capitalization recommendation for new modules
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. Domenichelli wrote: > 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_FOUND? > - X_INCLUDE_DIRS or X_INCLUDE_DIRS? > > > Thanks > > > Regards, > Daniele > -- > > 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://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] FindXXX capitalization recommendation for new modules
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_FOUND? - X_INCLUDE_DIRS or X_INCLUDE_DIRS? Thanks Regards, Daniele -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Fwd: source_group(), Xcode projects
[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 ends up in 'Source' and 'Headers' groups under each target in the project. I'm guessing I am doing something dumb, but I'm at a loss to explain what. Key things: - does the relative order of the source_group() and targets matter? I.e should I be ensuring source_group commands appear after the source/headers are added to a target? - file names; my impression is that source_group() is working on the file name only, not the full path. In my project most of the source files are collected from other directories and added to the target with a relative path (eg, ../SomeDir/somefile.cxx). I've tried both the full path and simply 'somefile.cxx' after the FILES in source_group(), to no avail. Can anyone suggest some other experiments to try, to figure out what I'm doing wrong? Thanks, James -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] FindBLAS module
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 library location. Is there a way to specify where to look for ACML library ? thanks -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How do I enter an empty string to a cmake -i variable request?
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 Technologies Division • Lawrence Berkeley Labs > > > -- > > 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://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- 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://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake