I think it is worth adding to what Mateusz wrote that the
MSVC_RUNTIME_LIBRARY property / CMAKE_MSVC_RUNTIME_LIBRARY variable are
only available if policy CMP0091 is set to NEW, which it will not be
because LLVM's CMakeLists.txt only requires CMake 3.4.3 or later (and
thus all policies introduced after 3.4.3 are set to OLD for
compatibility). So if you do not want to edit LLVM's CMakeLists.txt, you
need to use the options provided by LLVM's CMake project to control the
build.
We select the CRT LLVM's libraries will use with the LLVM_USE_CRT_DEBUG
and LLVM_USE_CRT_RELEASE options, i.e. to build with a static MSVC
runtime we use
-DLLVM_USE_CRT_DEBUG=MTd -DLLVM_USE_CRT_RELEASE=MT
These options are not documented on the "Building LLVM with CMake" page,
but can be found by looking into LLVM's cmake directory.
Am 28.10.19 um 12:53 schrieb Mateusz Loskot:
On Mon, 28 Oct 2019 at 12:22, Osman Zakir <osmanzaki...@hotmail.com> wrote:
And I should do "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT"
Man, read the docs I pasted!!!
https://cmake.org/cmake/help/v3.15/prop_tgt/MSVC_RUNTIME_LIBRARY.html
Best regards,
--
*Dr. Eric Dönges*
Senior Software Engineer
MVTec Software GmbH | Arnulfstr. 205 | 80634 Munich | Germany
doen...@mvtec.com <mailto:musterm...@mvtec.com> | Tel: +49 89 457 695-0
| www.mvtec.com <http://www.mvtec.com>
Find our privacy policy here <https://www.mvtec.com/imprint>.
Sign up <https://www.mvtec.com/newsletter> for our MVTec Newsletter!
Geschäftsführer: Dr. Wolfgang Eckstein, Dr. Olaf Munkelt
Amtsgericht München HRB 114695
MVTec Software GmbH Logo
--
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:
https://cmake.org/mailman/listinfo/cmake