Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Michael Jackson
Cool tip. Didn’t know that. I should compact my script a bit. I do that for the Intel Fortran compiler that we use but didn’t think of it for the vcvarsall.bat file. -- Mike Jackson From: Juan Sanchez Date: Wednesday, May 22, 2019 at 11:41 AM To: Michael Jackson Cc: Robert Dailey ,

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Robert Dailey
Thanks everyone. I fully understand about compilers being on PATH or setting the CMAKE__COMPILER variables. However, what is really important is the system introspection done by CMake to find the IDEs when you select the visual studio generators. I was hoping that logic could be shared. This would

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Michael Ellery
> On May 22, 2019, at 6:58 AM, Robert Dailey wrote: > > From the command line, I want to generate Ninja build scripts that > utilize a specific version of MSVC compiler. Basically I'd like the > combination of `-G"Visual Studio 15 2017"` with regards to its ability > to find the C and C++

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Juan Sanchez
On Wed, May 22, 2019 at 10:27 AM Michael Jackson < mike.jack...@bluequartz.net> wrote: > Do this all the time both for our CDash nightlies and when I am developing > on Windows. The essential pieces of the puzzle are the following: > > 1: Ninja needs to be on your path > 2: The compilers need to

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Michael Jackson
Do this all the time both for our CDash nightlies and when I am developing on Windows. The essential pieces of the puzzle are the following: 1: Ninja needs to be on your path 2: The compilers need to be on your path. 1 can be solved in a few different ways. The brute force is to edit the system

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Marc CHEVRIER
The easiest way is to launch a CMD with the correct development environment (see for example  https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs). Le 22 mai 2019 à 15:58 +0200, Robert Dailey , a écrit : > From the command line, I want to generate Ninja build

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Haocheng Liu via CMake
You can run `CMake -GNinja ` in a visual studio command line prompt where It could find the right C/C++ compiler via the environment. Normally you can find the command line prompt in the windows menu. On Wed, May 22, 2019 at 9:58 AM Robert Dailey wrote: > From the command line, I want to