[CMake] Questions about differences between building with Ninja and VS2017

2017-06-23 Thread ken poole
In our environment we have: CMake 3.8.1 VS Enterprise 2017 15.1 (26403.7) Ninja 1.7.2 Since we are building on Win Server 2012R2 and targeting Win7 we do define the MS macros (_WIN32_WINNT, WINVER, _WIN32_WINDOWS, NTDDI_VERSION) to ensure we only get access to the features that Win7 has. When we

[CMake] FILE(LOCK ... GUARD FILE) fails with cmake -P

2017-06-23 Thread Sergey Zakharchenko
Hello, CMake crashes on an assertion when I use FILE(LOCK ... GUARD FILE) inside of a file called (directly or indirectly) from cmake -P. $ cat x.cmake FILE(LOCK . DIRECTORY GUARD FILE) $ cat y.cmake INCLUDE(x.cmake) $ cmake -P x.cmake Assertion failed: (!this->FileScopes.empty()), function

Re: [CMake] Platform dSPACE

2017-06-23 Thread Michael Ellery
> On Jun 23, 2017, at 1:11 PM, Robin Verschueren > wrote: > > Thank you, that makes sense. > > If I do that, how can I set specific settings for this Platform only? It > seems that e.g. > > set(CMAKE_INCLUDE_FLAG_C "-J") > > in the Toolchain file is overwritten

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Okay, that sounds reasonable. It's a pity, because that clutters the CMakeLists of potentially a lot of subfolders, e.g.: if(EMBEDDED_SYSTEM1) include(SYSTEM1_SPECIAL_FLAGS) elseif(EMBEDDED_SYSTEM2) include( etc. It would be nicer to just specify that from the command line: cmake -D

Re: [CMake] Platform dSPACE

2017-06-23 Thread Nils Gladitz
On 23.06.2017 21:47, Robin Verschueren wrote: Dear CMake, We are trying to build our application for the dSPACE embedded system (www.dspace.com ), more specifically their MicroAutobox-II. This makes use of a specific compiler called mccppc (Microtec C/C++ PowerPC

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Thank you, that makes sense. If I do that, how can I set specific settings for this Platform only? It seems that e.g. set(CMAKE_INCLUDE_FLAG_C "-J") in the Toolchain file is overwritten by CMake after processing the Toolchain file (more specifically, in CMakeGenericSystem.cmake). Or should I

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Dear Nils, Perfect! This was exactly what I was looking for. It works, and the CMAKE_INCLUDE_FLAG_C is not overwritten. Thanks, Robin On Fri, 23 Jun 2017 at 13:29 Nils Gladitz wrote: > On 23.06.2017 21:47, Robin Verschueren wrote: > > Dear CMake, > > We are trying to

[CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Dear CMake, We are trying to build our application for the dSPACE embedded system (www.dspace.com), more specifically their MicroAutobox-II. This makes use of a specific compiler called mccppc (Microtec C/C++ PowerPC compiler). I was following the instructions on this wiki page

Re: [CMake] Platform dSPACE

2017-06-23 Thread Martin Weber
Am Freitag, 23. Juni 2017, 19:47:32 CEST schrieb Robin Verschueren: > Dear CMake, > > We are trying to build our application for the dSPACE embedded system > (www.dspace.com), more specifically their MicroAutobox-II. This makes > use of a specific compiler called mccppc (Microtec C/C++ PowerPC

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
That's exactly what I did :) On Fri, 23 Jun 2017 at 13:01 Michael Ellery wrote: > > > On Jun 23, 2017, at 12:47 PM, Robin Verschueren < > robin.verschue...@gmail.com> wrote: > > > > Dear CMake, > > > > We are trying to build our application for the dSPACE embedded system >

Re: [CMake] Platform dSPACE

2017-06-23 Thread Robin Verschueren
Dear Martin, That's exactly what I'm doing. The trouble is that I want to use set(CMAKE_SYSTEM_NAME dSPACE) or something similar. But then I get this warning that `dSPACE.cmake' is not found in the `Platform' folder. My question was how to circumvent this. Best regards, Robin On Fri, 23 Jun

Re: [CMake] Platform dSPACE

2017-06-23 Thread Michael Ellery
> On Jun 23, 2017, at 1:01 PM, Michael Ellery wrote: > > >> On Jun 23, 2017, at 12:47 PM, Robin Verschueren >> wrote: >> >> Dear CMake, >> >> We are trying to build our application for the dSPACE embedded system >> (www.dspace.com), more

Re: [CMake] Platform dSPACE

2017-06-23 Thread Michael Ellery
> On Jun 23, 2017, at 12:47 PM, Robin Verschueren > wrote: > > Dear CMake, > > We are trying to build our application for the dSPACE embedded system > (www.dspace.com), more specifically their MicroAutobox-II. This makes > use of a specific compiler called mccppc

[CMake] Cannot find source file:

2017-06-23 Thread Sean Wayland
Hi all, I am having trouble getting an application to build. I keep getting this error "cannot find source file" /Users/seanwayland/Desktop/CATSMAT-masterfri/catsmat/catsmat/Analysis/src/*.cpp This is the first folder containing sources and when it doesn't find anything here it stops. There

[CMake] State of CMAKE_MSVCIDE_RUN_PATH

2017-06-23 Thread Christian Ehrlicher
Hi,   It looks like there's a variable CMAKE_MSVCIDE_RUN_PATH to add additional paths which ar eused during add_custom_command/add_custom_target runs. But this variable is not documented anywhere ... is it safe to use this variable in CMake scripts?   Thx, Christian -- Powered by

Re: [CMake] Problem with fixup bundle and duplicate change commands on macOS

2017-06-23 Thread Luis Caro Campos
Hi Lukas, Could you provide some details? Please do correct me if any of my assumptions are wrong. You are calling FIXUP_BUNDLE on an executable created this way: add_executable(MyAppName MACOSX_BUNDLE ...), and you need are calling FIXUP_BUNDLE so that the 3rd party library dependencies are

[CMake] Visual Studio with CUDA does not work in 3.9

2017-06-23 Thread Mueller-Roemer, Johannes Sebastian
The absolute minimum example cmake_minimum_required(VERSION 3.9 FATAL_ERROR) project(cuda-test LANGUAGES C CXX CUDA) add_executable(cuda-test main.cu) Fails to configure with the error: CMake Error at CMakeLists.txt:2 (project): No CMAKE_CUDA_COMPILER could be found. Am I missing something,

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-23 Thread Hancox, James
Hi Brad, I picked up rc4 (since according to the release notes it has your changes merged in) and tried it out. Sadly I'm still running into problems! It looks like a semicolon is incorrectly added when -Xcompiler is appended to AdditionalOptions: -lineinfo;-Xcompiler="/bigobj -Zi -Ob1" This

Re: [CMake] Visual Studio with CUDA does not work in 3.9

2017-06-23 Thread Robert Maynard
Hi, Do you have the NVIDIA CUDA Visual Studio Integration tools installed? This is needed for support when using the Visual Studio Generator(s). Otherwise you can still use ninja or the nmake generators. On Fri, Jun 23, 2017 at 7:06 AM, Mueller-Roemer, Johannes Sebastian

Re: [CMake] FILE(LOCK ... GUARD FILE) fails with cmake -P

2017-06-23 Thread Robert Maynard
Hi, I have opened an issue reporting this problem: https://gitlab.kitware.com/cmake/cmake/issues/17009 On Fri, Jun 23, 2017 at 2:23 AM, Sergey Zakharchenko wrote: > Hello, > > CMake crashes on an assertion when I use FILE(LOCK ... GUARD FILE) > inside of a file called

Re: [CMake] Visual Studio with CUDA does not work in 3.9

2017-06-23 Thread Mueller-Roemer, Johannes Sebastian
Hi Robert, yes, according to the Windows installed program list, I have "NVIDIA CUDA Visual Studio Integration 8.0" installed. I can also create CUDA projects via "New project" and have an Nsight menu entry. Regards Johannes Mueller-Roemer Fraunhofer-Institut für Graphische Datenverarbeitung

Re: [CMake] Visual Studio with CUDA does not work in 3.9

2017-06-23 Thread Robert Maynard
Hi Unfortunately you are going to need to provide more information to help track down the issue. We currently have machines that verify 2015/8.0 and 2013/7.5 properly work ( https://open.cdash.org/index.php?project=CMake=1=1=buildname=63=CUDA ) Can you please provide run from the build directory

Re: [cmake-developers] Bug with CMAKE_ASM_COMPILER and Android NDK

2017-06-23 Thread Robert Dailey
Oh I'm using CMake 3.9.0 RC3 On Fri, Jun 23, 2017 at 2:18 PM, Robert Dailey wrote: > So I have two environment variables: > > ANDROID_NDK = E:\android\ndk > ANDROID_NDK_72 = E:\android\ndk_72 > > In my toolchain file, I do this: > > > > set( CMAKE_SYSTEM_NAME Android )

[cmake-developers] Bug with CMAKE_ASM_COMPILER and Android NDK

2017-06-23 Thread Robert Dailey
So I have two environment variables: ANDROID_NDK = E:\android\ndk ANDROID_NDK_72 = E:\android\ndk_72 In my toolchain file, I do this: set( CMAKE_SYSTEM_NAME Android ) set( CMAKE_SYSTEM_VERSION 15 ) # API level set( CMAKE_ANDROID_ARCH_ABI armeabi-v7a ) set( CMAKE_ANDROID_STL_TYPE c++_shared )

[Cmake-commits] CMake branch, master, updated. v3.9.0-rc4-142-g2731edf

2017-06-23 Thread Kitware Robot
_VERSION_MINOR 9) -set(CMake_VERSION_PATCH 20170623) +set(CMake_VERSION_PATCH 20170624) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/