[Cmake-commits] CMake branch, master, updated. v3.12.1-487-gc549dee

2018-08-27 Thread Kitware Robot
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index dc64c6c..2c9922d 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 12) -set(CMake_VERSION_PATCH 20180827) +set(CMake_VER

[Cmake-commits] CMake branch, master, updated. v3.12.1-486-g826e758

2018-08-27 Thread Kitware Robot
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 826e75814bf12434b989e19b18cd458abe5d0120 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.12.1-480-gce153ca

2018-08-27 Thread Kitware Robot
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 ce153cacc7010344afbe809973e5129d667ce289 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.12.1-470-g92de93b

2018-08-27 Thread Kitware Robot
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 92de93b97486ae93fd73829c8d69e6401858acd3 (commit) via

Re: [CMake] Build flags not applied during compiler testing on Ubuntu

2018-08-27 Thread Brad King
On 08/25/2018 05:48 PM, Richard Shaw wrote: > set(CMAKE_EXE_LINKER_FLAGS "-T${CMAKE_SOURCE_DIR}/stm32_flash.ld") > > The build dir is the binary directory, not the source directory... Toolchain files cannot reference variables like CMAKE_SOURCE_DIR that depend on the source and build tree

Re: [cmake-developers] OpenCL language support (was: Compiler dependencies with Unix Makefiles)

2018-08-27 Thread Brad King
On 08/25/2018 02:08 PM, jerry@web.de wrote: > new Compiler to CMake which compiles and links OpenCL files (file ending .cl) Will that be done via `enable_language(OpenCL)`? How might it work on VS and Xcode? > What is the reason that CMake uses its own mechanism with Unix Makefiles >

Re: [CMake] CMake specify using either NVCC or host compilers with add_executable

2018-08-27 Thread Petr Kmoch
Hi Quang, I believe this should be doable with setting the source file's LANGUAGE property ( https://cmake.org/cmake/help/latest/prop_sf/LANGUAGE.html ): add_executable(foo_cuda foo.cpp) set_property(SOURCE foo.cpp PROPERTY LANGUAGE CUDA) Petr On Mon, 27 Aug 2018 at 17:40, Quang Ha wrote: >

[CMake] CMake specify using either NVCC or host compilers with add_executable

2018-08-27 Thread Quang Ha
Hi all, With the new way CMake is treating CUDA codes, now we can do: project(foo LANGUAGES CXX CUDA) and can do: add_executable(foo_cuda foo.cu) # will use NVCC add_executable(foo_cpp foo.cpp) # will use host compilers Now since CUDA can take *.cpp files as extension (see