Re: [CMake] Specifying VS 2019 LLVM toolset on CMake command line?

2019-05-23 Thread Robert Maynard via CMake
I believe it is "-T llvm" when using the Visual Studio Generators On Sun, May 19, 2019 at 3:33 PM Osman Zakir wrote: > > How do I specify the VS 2019 LLVM toolset when configuring a build with CMake > on the command line? > -- > > Powered by www.kitware.com > > Please keep messages on-topic and

[CMake] cmake + ccache -> cross-compile -> toolchain wrapper

2019-05-23 Thread Haio Maio
How do you use cmake + ccache to cross compile in combination with a toolchain compiler wrapper (from crosstool-NG)? The situation: cross-compile for arm with a sdk + cmake + ccache The sdk installation $ sdk-dat-arm$ ll host/usr/bin/ arm-am3354-linux-gnueabihf-c++ -> ext-toolchain-wrapper* arm

Re: [CMake] Troubles compiling llvm

2019-05-23 Thread Eric Doenges
To answer myself: I just saw that you already set CMAKE_INSTALL_PREFIX, so ignore that part of my answer. Unfortunately, as far as I am aware it is not possible to split building with ExternalProject_Add into separate build and install steps, so your options essentially boil down to: 1) Give

Re: [CMake] Troubles compiling llvm

2019-05-23 Thread Albrecht Schlosser
Am 23.05.2019 10:40 schrieb Steven Truppe: i'm trying to compile llvm with ExternalProject_Add and get the following error: -- Installing: /usr/lib/ocaml/llvm/llvm.mli CMake Error at bindings/ocaml/llvm/cmake_install.cmake:49 (file):   file INSTALL cannot copy file "/home/stuv/linux-projects/p

Re: [CMake] Troubles compiling llvm

2019-05-23 Thread Eric Doenges
Hi Steven, I would assume the problem is that you do not have write permissions for /usr/lib. You either need to give yourself the appropriate rights, our run the build as root (which is probably a very bad idea). If you don't want to actually install to /usr/lib, you can pass a different CMA

[CMake] Troubles compiling llvm

2019-05-23 Thread Steven Truppe
Hi everyone, i'm trying to compile llvm with ExternalProject_Add and get the following error: -- Installing: /usr/lib/ocaml/llvm/llvm.mli CMake Error at bindings/ocaml/llvm/cmake_install.cmake:49 (file):   file INSTALL cannot copy file "/home/stuv/linux-projects/programming/bsEdit/build_files/Re