[CMake] Anyone got Clang/LLVM working natively on Windows

2015-09-11 Thread Aaron Gray
Hi Has anyone got Clang/LLVM working natively on Windows, and got CMake scripts for it ? Many thanks in advance, Aaron -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the C

[CMake] Ninja target aliases generation - mixing absolute target path with relative

2015-09-11 Thread Vladimir Yelnikov
Dear all, Project has following structure (and I can't change it) -project -module1 -CMakeLists.txt (module1 build rules, depends on module2 using add_subdirectory("../module2" "${binarypath}") -lib1 -CMakeLists.txt (depends on lib3) -lib2 -CMakeLists.txt -module2

[CMake] Force rebuild of external project with Ninja

2015-09-11 Thread Jamie Hanlon
Dear all, I thought I would post this here before filing a bug, to see if anyone else has encountered this problem. The 'BUILD_ALWAYS 1' option for 'ExternalProject_Add' does not run the install command when used with Ninja. This behaviour can be demonstrated with the following project: CMa

Re: [CMake] CMAKE_CXX_COMPILE_OBJECT not set with ADD_SUBDIRECTORY

2015-09-11 Thread CHEVRIER, Marc
PROJECT instruction MUST BE the first one after CMAKE_MINIMUM_REQUIRED: -- lib CMakeLists.txt { CMAKE_MINIMUM_REQUIRED (VERSION 2.8.8) PROJECT(lib) ADD_SUBDIRECTORY(libtest) } From: CMake on behalf of Emmanuel HOUITTE Date: Friday 11 September 2015 15:26 To: "cmake@cmake.org

[CMake] CMAKE_CXX_COMPILE_OBJECT not set with ADD_SUBDIRECTORY

2015-09-11 Thread Emmanuel HOUITTE
I'm working with cmake version 2.8.12.2 on CentOS6. I've got a very simple project with one subdirectory. Each directory has a CMakeLists.txt file. The ADD_SUBDIRECTORY seems to remove the default generated CMAKE rule variables in the generation step. Is it normal? How to get an example without ge

Re: [CMake] FindMPI

2015-09-11 Thread Alain Miniussi
On 11/09/2015 10:53, Nico Schlömer wrote: Hi everyone, I see from the CMake docs [1] that the recommended way for using MPI is to call `find_package(MPI)` and set the linker and include flags appropriately. On the other hand, I see from the OpenMPI specs [2] that > The Open MPI team *strong

Re: [CMake] FindMPI

2015-09-11 Thread Raymond Wan
Hi Nico, On Fri, Sep 11, 2015 at 4:53 PM, Nico Schlömer wrote: > I see from the CMake docs [1] that the recommended way for using MPI is to > call `find_package(MPI)` and set the linker and include flags appropriately. > On the other hand, I see from the OpenMPI specs [2] that > >> > > The Open

[CMake] FindMPI

2015-09-11 Thread Nico Schlömer
Hi everyone, I see from the CMake docs [1] that the recommended way for using MPI is to call `find_package(MPI)` and set the linker and include flags appropriately. On the other hand, I see from the OpenMPI specs [2] that > The Open MPI team *strongly* recommends that you simply use Open MPI's