[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-148-gcffff0f17e

2019-10-28 Thread Kitware Robot via Cmake-commits
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index f73cd7dd92..f700953602 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,7 +1,7 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 16) -set(CMake_VERSION_PATCH 2019

[cmake-developers] productbuild: Installing to absolute system path or to user home path

2019-10-28 Thread Roman Wüger
 Hello, I tried to install a file/directory with productbuild on macOS which is generated with CPack. The most of the files are installed correctly, but I have two problems: If I want to install to “/Library/Application\ Support/Adobe/Lightroom/Modules” If I want to install to the users

[CMake] productbuild: Installing to absolute system path or to user home path

2019-10-28 Thread Roman Wüger
 Hello, I tried to install a file/directory with productbuild on macOS which is generated with CPack. The most of the files are installed correctly, but I have two problems: If I want to install to “/Library/Application\ Support/Adobe/Lightroom/Modules” If I want to install to the users

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Juan Sanchez
Hello, It has been a while since I've looked at this stuff, but I do use exceptions in my project. So I add the /EHsc: SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict /EHsc ${WARNINGS_IGNORE}") SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fp:strict ${WARNINGS_IGNORE}") and I also add a linker

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-147-g92eb3a4475

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 92eb3a4475e92d993b901c06d967210912390ada (commit) via

[Cmake-commits] CMake branch, release, updated. v3.16.0-rc2-16-g62267715fe

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, release has been updated via 62267715fe6f69162b834c6ee96ca6073ff96d15 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-145-g336a826f77

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 336a826f77be90229dc3ee82c647148bb02220a9 (commit) via

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Eric Doenges
By default, CMake will use /EHsc when compiling for the Windows platform, with no option to change this that I am aware of. If a project wants different settings, it needs to handle this itself. And in fact, LLVM 3.4.2 conditionally modifies /EHsc to /EHs-c- in

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-140-gcb13aa580d

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via cb13aa580d918816538e76efb666f1209f0dd717 (commit) via

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
On Mon, 28 Oct 2019 at 13:23, Eric Doenges wrote: > 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 > Yes, indeed. FWIW, it is also documented in the frame "Note"

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
On Mon, 28 Oct 2019 at 13:09, Osman Zakir wrote: > > I did read that. > I tried to specify CMAKE_MSVC_RUNTIME_LIBRARY and MSVC_RUNTIME_LIBRARY as > /MT, -MT and MT, but nothing worked. I'm sorry, but that confirms you did not read that document. Hint 1: "The allowed values are" Hint 2: In

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Eric Doenges
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

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
Okay, actually I can't enable a static runtime for LLVM on the command line. I was told about a patch I need to apply. -- 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

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
On Mon, 28 Oct 2019 at 12:22, Osman Zakir 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, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
I tried "-DCMAKE_MSVC_RUNTIME_LIBRARY=MT" and also "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT" before that, along with "-DCMAKE_BUILD_TYPE=Release", but I still get "Using Release VC++ CRT: MD". What's going on? I also did "-DCMAKE_CXX_FLAGS="/permissive- /EHsc /std:c++17 /O2 /MT

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
Thanks for the reply. What about enabling C++ exceptions? And I should do "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT" to set the runtime type to static, right? -- 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

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
On Mon, 28 Oct 2019 at 12:01, Osman Zakir wrote: > > 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. This may help (CMake 3.15 or later only):

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-138-g6ad91699bf

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 6ad91699bf349c6cd233d1016760410b69918b25 (commit) via

[Cmake-commits] CMake branch, release, updated. v3.16.0-rc2-13-gc79e9d8c21

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, release has been updated via c79e9d8c210fd928bfb39a57634094ab74f8d120 (commit) via

[CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Osman Zakir
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

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-135-gcdcc173e23

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via cdcc173e236963ad598b098d2d807d0489aa3d42 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.16.0-rc2-132-ge03b677e70

2019-10-28 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via e03b677e703f84c9d1a2875083d1290db16eb4ad (commit) via

Re: [CMake] Got Weird Error When Trying to Configure LLVM Version 10

2019-10-28 Thread Eric Doenges
MSBuild is complaining that the generated project file doesn't contain a 32 bit debug target - which is no surprise, because you told CMake to generate a project for a release build. You will probably need to tell msbuild.exe that you want to build a release build with the

[CMake] Include VTK Project and Link Targets

2019-10-28 Thread Nicholas Draper
Hello, I am having some difficulty trying to add an external project, in this particular case the VTK (Visualization Toolkit) project, to my own project using the *ExternalProject_Add *command. My goal is to download the project from the git repository to a *third_party_folder* in my repo and