[CMake] MSVC11 not set properly?

2013-02-12 Thread Guy Rutenberg
Hi, I'm using cmake 2.8.10.2 on Windows 7. For some reason, when I select Visual Studio 11 as the generator (I use Visual Studio Express 2012), the MSVC11 variable is not set, instead MSVC10 is set. This breaks all kinds of stuff, such as FindBoost.cmake (first I thought it's a bug in FindBoost,

Re: [CMake] Fortran_MODULE_DIRECTORY ignored in second subdir

2013-02-12 Thread Petr Kmoch
Thanks very much for clearing this up. I fully understand my setup is a little unorthodox. I'm glad I can now concentrate on finding a workaround instead of wondering what I'm doing wrong. On Tue, Feb 12, 2013 at 3:06 PM, Brad King wrote: > On 02/12/2013 08:15 AM, Petr Kmoch wrote: > > project(

Re: [CMake] Fortran_MODULE_DIRECTORY ignored in second subdir

2013-02-12 Thread Brad King
On 02/12/2013 08:15 AM, Petr Kmoch wrote: > project(Top) # No Fortran here [snip] > My real setup doesn't really allow me to enable Fortran in the > toplevel project; is there a way to make this work without that? CMake simply doesn't support this case right now. The language initialization store

Re: [CMake] Fortran_MODULE_DIRECTORY ignored in second subdir

2013-02-12 Thread Petr Kmoch
I forgot to add that if, immediately after running CMake, I run it again (without changing a single file), the flags "-module foobar" appear in the sub2/.../flags.cmake as well. Petr On Tue, Feb 12, 2013 at 2:15 PM, Petr Kmoch wrote: > Hi all. > > I have a problem with Fortran_MODULE_DIRECTORY

[CMake] Fortran_MODULE_DIRECTORY ignored in second subdir

2013-02-12 Thread Petr Kmoch
Hi all. I have a problem with Fortran_MODULE_DIRECTORY only being applied in the first of several subdirectory projects. Here's a simplified setup to demonstrate the issue. It has a toplevel C++ project and two subdirectory projects which use Fortran: $cat source_dir/CMakeLists.txt: cmake_minimum