Hi. I'm trying to build LLVM 10.0.0 with CMake on the command line (Developer Command Prompt for VS2019) and I need to know how to switch to a static runtime. I've tried specifying LLVM's variable for this, but it didn't work. I still have a dynamic runtime. Along with that, I also need to know how to enable C++ exceptions.
One thing I tried was to do "-DCMAKE_CXX_FLAGS="/std:c++17 /MT /EHsc /permissive-"" but this also didn't work. Specifying these on the CXXFLAGS environment variable didn't do anything either. I was using the same session of the Developer Command Prompt, but I made sure to run "refreshenv" to take the new environment from the registry before continuing. Note: I don't want to edit the CMakeLists.txt file because I want to be able to run "git pull" without having to stage any changes (I cloned the LLVM GitHub repository for the source code). Any help is appreciated. Thanks in advance.
-- 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