Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Eric Doenges
We use ninja for building on Windows. Our toolchain file for the MSVC compiler is really simple (this is for MSVC 18.0, 32 bits): --- SNIP --- set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_PROCESSOR "x86") set(CMAKE_SYSTEM_VERSION 1) # Microsoft MSVC compiler set(CMAKE_C_COMPILER cl.exe)

[Cmake-commits] CMake branch, master, updated. v3.15.3-1068-g45b7d52

2019-09-17 Thread Kitware Robot via Cmake-commits
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 887d970..1e0721f 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 15) -set(CMake_VERSION_PATCH 20190917) +set(CMake_VER

Re: [CMake] Difference between PRIVATE and PUBLIC with target_link_libraries

2019-09-17 Thread Alan W. Irwin
Hi Craig: It appears you pretty much made the definitive statement about target_link_libraries (TLL) options at . However, I have some further questions about this key section of your statement: "[...] when A links in B as PRIVATE, the

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
Well, the Visual Studio Generator alone is not a option because the repository has a actual build system(a bunch of bat files that call a python script that generate ninja files). We want to change to cmake, and now we don't use Visual Studio a lot. Most of time, we only need their compiler and

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread fdk17
As I recall for myself, simply using the Visual Studio Generator with the -A option was all that was needed to build for Win32. You don't need a toolchain file because the generator already knows how to setup a Visual Studio Project to target Win32. Even the documentation for cross-compiling

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
Thanks, I'll check it out. The toolchain file, as is, can generate ninja builds that can be used to generate a executable, but when I execute them, he say : ``` -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: C:/Program

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Juan Sanchez
>From my brief research, it looks like the Microsoft version of CMake may have Ninja support. https://devblogs.microsoft.com/cppblog/cmake-support-in-visual-studio-whats-new-in-2017-15-3-update/ Regards, Juan On Tue, Sep 17, 2019 at 1:36 PM Joao Pedro Abreu De Souza < jp_ab...@id.uff.br>

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
So, only the Visual Studio generator use the Arch option? I try generate ninja build, but cmake(3.15.3) and the answer was ``` $ cmake -B build -S . -G "Ninja" -A Win32 CMake Error at CMakeLists.txt:2 (project): Generator Ninja does not support platform specification, but platform

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Guy Mac
AFAIK you can set the generator in a CMakeSettings.json file if you are using MSVC. https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=vs-2019 On 9/17/2019 10:00 AM, Juan Sanchez wrote: Hello, My impression that targeting 32 bit depends on what generator you are using.

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Juan Sanchez
Hello, My impression that targeting 32 bit depends on what generator you are using. https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2015%202017.html It looks like cmake now has: - cmake -G "Visual Studio 15 2017" -A Win32 - cmake -G "Visual Studio 15 2017" -A x64 It used

Re: [CMake] system runtime library file does not exist (warning)

2019-09-17 Thread Juan Sanchez
Hello, Somewhat related to your issue, is that newer versions of the Intel MKL are now free for use: https://software.intel.com/en-us/articles/free-ipsxe-tools-and-libraries Free Intel Performance Libraries for *Everyone* *Free for all,

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Albrecht Schlosser
On 9/17/19 2:17 PM Joao Pedro Abreu De Souza wrote: cl from visual studio 2017. Em ter, 17 de set de 2019 03:26, Stéphane Ancelot mailto:sance...@numalliance.com>> escreveu: Hi, That first depends on which compiler you will use ? Regards, S.Ancelot Le 16/09/2019 à

[Cmake-commits] CMake branch, master, updated. v3.15.3-1067-ge6ddb57

2019-09-17 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 e6ddb57479a3620c712719c120a7337a84470d21 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.15.3-1060-g42a20ef

2019-09-17 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 42a20ef79b86090b65de9836158db2a59c837e69 (commit) via

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
cl from visual studio 2017. Em ter, 17 de set de 2019 03:26, Stéphane Ancelot escreveu: > Hi, > > That first depends on which compiler you will use ? > > Regards, > > S.Ancelot > Le 16/09/2019 à 22:32, Joao Pedro Abreu De Souza a écrit : > > Hi guys. I am trying to generate,using cmake, a

[CMake] system runtime library file does not exist (warning)

2019-09-17 Thread Ilias Miroslav, doc. RNDr., PhD.
Hello, I have recent CMake 3.15.2 and old MKL library 11.1. Upon configuration cmake is issuing warnings due to faulty determined folder of general name FOLDER_lin (proper name is without lin): CMake Warning at

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Stéphane Ancelot
Hi, That first depends on which compiler you will use ? Regards, S.Ancelot Le 16/09/2019 à 22:32, Joao Pedro Abreu De Souza a écrit : Hi guys. I am trying to generate,using cmake, a executable with target Windows 32 bits using Windows 64 bits, but cannot find a standard toolchain file (I