Re: [CMake] project() with ASM fails with MSVC 19

2017-10-03 Thread Petr Kmoch
Hi Robert. You might try leaving ASM out of project() and using enable_language() after your call to project() (potentially in conditional branches). It can only (reliably) be used from the toplevel CMakeList, but that sounds like it could be good enough for you. https://cmake.org/cmake/help/late

Re: [CMake] project() with ASM fails with MSVC 19

2017-10-03 Thread Robert Dailey
I haven't; the bigger issue here is that the way we specify ASM changes depending on platform. But prior to the project() call, you can't really use CMake to its fullest since project() serves as practically an "initialize CMake" function. So there's a catch 22 situation here. My expectation was t

Re: [CMake] project() with ASM fails with MSVC 19

2017-09-19 Thread Robert Maynard
Have you tried setting the project call of project(libpng VERSION 1.6.33 LANGUAGES ASM_MASM C) On Tue, Sep 12, 2017 at 2:34 PM, Robert Dailey wrote: > Also, I am using the "Visual Studio 15 2017" generator with no other > options (generating through cmake-gui on Windows) > > On Tue, Sep 12, 2017

Re: [CMake] project() with ASM fails with MSVC 19

2017-09-12 Thread Robert Dailey
Also, I am using the "Visual Studio 15 2017" generator with no other options (generating through cmake-gui on Windows) On Tue, Sep 12, 2017 at 1:33 PM, Robert Dailey wrote: > Using CMake 3.9, I do this: > > cmake_minimum_required(VERSION 3.9) > project(libpng VERSION 1.6.33 LANGUAGES ASM C) > > I

[CMake] project() with ASM fails with MSVC 19

2017-09-12 Thread Robert Dailey
Using CMake 3.9, I do this: cmake_minimum_required(VERSION 3.9) project(libpng VERSION 1.6.33 LANGUAGES ASM C) I get the following error: -- The ASM compiler identification is unknown -- Didn't find assembler -- The C compiler identification is MSVC 19.11.25507.1 CMake Error at CMakeLists.txt:16