On 04/20/2016 10:01 AM, Johan Holmberg wrote:
> I tried specifying "-GNinja" to cmake, and setting CC/CXX to
> clang/clang++.
Good.
> But this didn't work. I get errors like:
>
> clang.exe: error: no such file or directory: '/nologo'
>
> indicating that CMake thinks it should pass Visual C++ style
> options to clang.
There are multiple variants of Clang that behave like "gcc" or "cl".
Which one is this? What installer did you use for Clang?
CMake should start out by printing the compiler id for the C and
CXX compilers. What did it show?
Please try a minimum test project like
>type CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(Test)
in a fresh build tree and post the files
CMakeFiles/CMake*.log
CMakeFiles/*/CMake*Compiler.cmake
to see what CMake detected about the compiler.
Thanks,
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake