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

2017-06-26 Thread Mueller-Roemer, Johannes Sebastian
If anyone else runs into this issue: I was able to solve it by re-installing the .NET 3.5 Framework which a recent Update had apparently removed (because I have previously built "native" CUDA VS projects on this machine without issues). This solved the issue for me. If you have an error message

Re: [CMake] fortran module name issue

2017-06-26 Thread xavier lacoste
Hello, You could also concatenate words with gfortran preprocessor using : #define PASTE(a) a #define CONCAT(a,b) PASTE(a)b My two cents, XL Le 27 juin 2017 4:01 AM, "Juan E. Sanchez" a écrit : > Hi Burlen, > > Thanks for your response, it inspired me to do something similar. > > Starting wi

Re: [CMake] fortran module name issue

2017-06-26 Thread Juan E. Sanchez
Hi Burlen, Thanks for your response, it inspired me to do something similar. Starting with the non-processed files, I used the code below. It also seems to track the mod file dependencies correctly, but I need to thoroughly test it. Note that I had to use the cpp command with brew (on mac o

Re: [CMake] fortran module name issue

2017-06-26 Thread Burlen Loring
Hi Juan, I have faced similar challenges when calling Fortran code from C++ templates. In the solution I came up with, I use a marked up Fortran template code and Cmake's configure_file command to generate a module for each combination of C++ types I need. The markup uses a token for each t

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Robert Maynard
IIRC the challenge is that CMake is not in control of specifying the name of the object file that will be used for the XCode generator. So when a project has multiple object files with the same source name XCode adds an unknown unique id. On Mon, Jun 26, 2017 at 4:58 PM, Watson, Andre wrote: > Hi

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Watson, Andre
Hi Gregor, so I wrote a really minimal test case for this, and to my surprise, it worked! My suspicion was now that my issue is caused from using object libraries in our system, because I need to create libs of libs for ease of CMake use. I modified my test case and got the issue again. One o

[CMake] fortran module name issue

2017-06-26 Thread Juan E. Sanchez
Hi, It seems like cmake cannot handle the case where the module name is the result of a macro. I am using this approach to compile the same code for different floating point precision. Any advice appreciated. This approach would apply to hundreds of files. The error is: Error copying Fort

Re: [CMake] How to refer to *.so files in Android NDK?

2017-06-26 Thread Gregor Jasny via CMake
On 6/22/17 4:01 PM, Robert Dailey wrote: > In my toolchain file for Android NDK, I specify the following *.so > paths manually: > > set( ANDROID_PREBUILT_LIBRARIES > > ${CMAKE_ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_shared.so > ${CMAKE_ANDROID_NDK}/platforms/andr

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Gregor Jasny via CMake
Hello, On 6/26/17 8:12 PM, Watson, Andre wrote: > We're currently migrating a huge internal system over to CMake, and we're > nearing completion, but have run into an issue with the generated Xcode > projects. We build this system on Windows, Linux, and Mac (both makefile and > Xcode). On all

[CMake] Xcode duplicate filename issue?

2017-06-26 Thread Watson, Andre
Hello, my name is Andre Watson and I work at Intuit working on the TurboTax line of products. We're currently migrating a huge internal system over to CMake, and we're nearing completion, but have run into an issue with the generated Xcode projects. We build this system on Windows, Linux, and

[CMake] hang in FindDoxygen.cmake on ppc64le

2017-06-26 Thread Serban Maerean
Hi, I get a hang in the "file" command in FindDoxygen.cmake, on ppc64le: 103 set(_x86 "(x86)") 104 file(GLOB _Doxygen_GRAPHVIZ_BIN_DIRS 105 "$ENV{ProgramFiles}/Graphviz*/bin" 106 "$ENV{ProgramFiles${_x86}}/Graphviz*/bin" 107 ) 108 unset(_x86) Linux does not understand '(' in name of files

Re: [CMake] State of CMAKE_MSVCIDE_RUN_PATH

2017-06-26 Thread Robert Maynard
Hi, Yes it is safe to use this variable. I am also in the process of adding some formal documentation for this. On Fri, Jun 23, 2017 at 2:48 AM, Christian Ehrlicher wrote: > Hi, > > It looks like there's a variable CMAKE_MSVCIDE_RUN_PATH to add additional > paths which ar eused during add_custom

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

2017-06-26 Thread Brad King
On 06/23/2017 07:40 AM, Hancox, James wrote: > a semicolon is incorrectly added when -Xcompiler is appended > to AdditionalOptions: Thanks for trying it! This has also been reported here: https://gitlab.kitware.com/cmake/cmake/issues/17008 Follow that for progress. Thanks, -Brad -- Powered

Re: [CMake] Warning: Argument not separated from preceding token by whitespace.

2017-06-26 Thread ycollette . nospam
Thanks a lot, it works fine. - Mail original - De: "Nils Gladitz" À: "ycollette nospam" Cc: "cmake" Envoyé: Lundi 26 Juin 2017 12:50:42 Objet: Re: [CMake] Warning: Argument not separated from preceding token by whitespace. On Mon, Jun 26, 2017 at 10:33 AM, < ycollette.nos...@free.fr

Re: [CMake] Warning: Argument not separated from preceding token by whitespace.

2017-06-26 Thread Nils Gladitz
On Mon, Jun 26, 2017 at 10:33 AM, wrote: > Hello, > > I've got the following code in a cmake file: > > 109 add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/tmp-pcode- > matlab/knitromatlab_fsolve.p > 110 ${CMAKE_BINARY_DIR}/tmp-pcode- > matlab/knitromatlab_lsqnonlin.p > 111

[CMake] Warning: Argument not separated from preceding token by whitespace.

2017-06-26 Thread ycollette . nospam
Hello, I've got the following code in a cmake file: 109 add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/tmp-pcode-matlab/knitromatlab_fsolve.p 110 ${CMAKE_BINARY_DIR}/tmp-pcode-matlab/knitromatlab_lsqnonlin.p 111 ${CMAKE_BINARY_DIR}/tmp-pcode-m