Re: [CMake] compiling .cpp/.cxx with CUDA compiler

2019-07-02 Thread Dmitry Mikushin
Compiling C++ code with CUDA compiler practically means only to implicitly include a bunch of CUDA-specific headers like cuda_runtime_api.h. Other than that, it's the same as compiling with the host C++ compiler. Thus, you can get the desired behavior by explicitly including those headers in case

Re: [CMake] CUDA Support

2019-03-29 Thread Dmitry Mikushin
Hi, That was my confusion as well: to my understanding, we should not try to combine enable_language(CUDA) with find_package(CUDA). They do not work together, either use one or another. Kind regards, - Dmitry. пт, 29 мар. 2019 г. в 19:58, Dustyn Blasig : > Hi All, > > I can't find any

Re: [CMake] CMake, CUDA and compilation database.

2018-10-19 Thread Dmitry Mikushin
Presuming makefile target, would it help if after CMake you do "make VERBOSE=1" ? Verbose mode should show all compilation commands, maybe you could further parse them into the format you want. Kind regards, - Dmitry. пт, 19 окт. 2018 г. в 18:17, Urs : > Hi, > > I'm trying to get CMake to

Re: [CMake] Automoc fails on MSYS2/MinGW

2018-10-04 Thread Dmitry Mikushin
Hi Ray, Thanks - done: https://github.com/Alexpux/MINGW-packages/issues/4508 Kind regards, - Dmitry Mikushin. чт, 4 окт. 2018 г. в 15:20, Ray Donnelly : > Hi Dmitry, > > You should report this on MSYS2's github repo (Alexpux), we apply some > patches to Qt's CMake files and one

[CMake] Automoc fails on MSYS2/MinGW

2018-10-04 Thread Dmitry Mikushin
turn value is checked? What places should I look at to debug cmake_autogen/automoc in CMake? Thanks & Kind regards, - Dmitry Mikushin. $ make [ 0%] Automatic MOC for target glazomer Start AutoMoc subprocess error The content generation command for "moc_predefs.

Re: [CMake] Transcriber AG

2018-07-18 Thread Dmitry Mikushin
Prerequisites must be installed or placed appropriately, according with instructions for specific program. Regarding the further steps, typically you should locate CMakeListst.txt file, create subfolder "build" in the same folder, change to "build" folder and run "cmake .." from it. Upon

Re: [CMake] How to place user-specified linked libraries *before* CUDA libraries?

2013-08-28 Thread Dmitry Mikushin
to CUDA_ADD_LIBRARY/EXECUTABLE. set(CUDA_LIBRARIES myoverride_cudart ${CUDA_LIBRARIES}) cuda_add_library(...) # Restore CUDA_LIBRARIES as you see fit James -Original Message- From: Dmitry Mikushin [mailto:dmi...@kernelgen.org] Sent: Tuesday, August 27, 2013 8:05 PM To: James Bigler; Abe

[CMake] How to place user-specified linked libraries *before* CUDA libraries?

2013-08-27 Thread Dmitry Mikushin
Dear CUDA-for-CMake Maintainers, Our package links a shared library, which defines some replacement symbols for CUDA runtime (e.g. redefines cudaLaunch). In order to get our replacements to take precedence over CUDA runtime, we need the user-specified linked library to appear earlier in the link