[CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
Hi all. I'm using cmake 2.8.10.2. I'm trying to introduce an alternative compiler into my build system for Linux, so as a first step I've separated my project statement from: project(MyProject C CXX) into: project(MyProject NONE) enable_language(C) enable_language(CXX) This works fine

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
Er... I take it back about being able to set the value by hand. If I do so I get a TON of errors, for each of the builtin variable variants for MinSizeRel and RelWithDebInfo (e.g., CMAKE_C_FLAGS_MINRELSIZE / "Error required internal CMake variable not set"). Now I'm not sure what to do. On Fri,

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Brad King
On 05/10/2013 10:31 AM, Paul Smith wrote: > I've separated my project statement from: > > project(MyProject C CXX) > > into: > > project(MyProject NONE) > enable_language(C) > enable_language(CXX) > > on Windows (VS 10 Win64 generator): > > CMAKE_CONFIGURATION_TYPES:STRING=Debug;Rele

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
On Fri, 2013-05-10 at 11:14 -0400, Brad King wrote: > On 05/10/2013 10:31 AM, Paul Smith wrote: > > I've separated my project statement from: > > > > project(MyProject C CXX) > > > > into: > > > > project(MyProject NONE) > > enable_language(C) > > enable_language(CXX) > > > > on Windows

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Brad King
On 05/10/2013 11:23 AM, Paul Smith wrote: > Is there any way to work around this? I've tried setting > CMAKE_CONFIGURATION_TYPES before project() Make sure you set it as a cache entry: set(CMAKE_CONFIGURATION_TYPES "Debug;Release;MinSizeRel;RelWithDebInfo" CACHE STRING "Supported configs"

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
On Fri, 2013-05-10 at 11:34 -0400, Brad King wrote: > On 05/10/2013 11:23 AM, Paul Smith wrote: > > Is there any way to work around this? I've tried setting > > CMAKE_CONFIGURATION_TYPES before project() > > Make sure you set it as a cache entry: > > set(CMAKE_CONFIGURATION_TYPES >"Debug;Re

[CMake] Problem installing symbolic links on Mac OS X

2013-05-10 Thread Cory Quammen
Hi all, I am running Mac OS X 10.7.5 . When I installed CMake 2.8.10.2 just now, it failed to create symbolic links to the cmake executables in the default location because I had symbolic links with the same names already installed by a previous version of CMake. Removing the offending links and r

Re: [CMake] Problem installing symbolic links on Mac OS X

2013-05-10 Thread Cory Quammen
Oops, I failed to mention that the symbolic links I am talking about are in /usr/bin, e.g., /usr/bin/cmake, /usr/bin/ctest, etc. On Fri, May 10, 2013 at 12:34 PM, Cory Quammen wrote: > Hi all, > > I am running Mac OS X 10.7.5 . When I installed CMake 2.8.10.2 just > now, it failed to create symbo

Re: [CMake] Problem installing symbolic links on Mac OS X

2013-05-10 Thread Sean McBride
On Fri, 10 May 2013 12:34:06 -0400, Cory Quammen said: >I am running Mac OS X 10.7.5 . When I installed CMake 2.8.10.2 just >now, it failed to create symbolic links to the cmake executables in >the default location because I had symbolic links with the same names >already installed by a previous v

Re: [CMake] Problem installing symbolic links on Mac OS X

2013-05-10 Thread Cory Quammen
Thanks, Sean. On Fri, May 10, 2013 at 12:41 PM, Sean McBride wrote: > On Fri, 10 May 2013 12:34:06 -0400, Cory Quammen said: > >>I am running Mac OS X 10.7.5 . When I installed CMake 2.8.10.2 just >>now, it failed to create symbolic links to the cmake executables in >>the default location because

[CMake] How to install Fortran module files?

2013-05-10 Thread Neil Carlson
I'm trying to figure out how to install the module (.mod) files that are generated by the Fortran compiler. I've only found one thread on the topic from 3 years ago. The solution there was to find the appropriate directory in the build tree where these files were created and scarf up everything t

[CMake] Thanx for fixing visual studio doing the install even though the build failed

2013-05-10 Thread J Decker
Just a thank you note; I'm noticing that with the latest version, that when I build the install target, it doesn't do the install if the build failed. It previously would go through the install (especially if a previous build had succeeded) which ran all the error output off the screen. -- Powere

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 ins

[CMake] Exclude custom install target(s) from all

2013-05-10 Thread Jeet Sukumaran
Hi all, I have a library that is built and linked to as part of my project. I want to provide the facility to OPTIONALLY have the library installed system-wide (or wherever ${CMAKE_INSTALL_PREFIX} is set). Otherwise, by default, the project's final build products will be linked statically to