Re: [CMake] PythonInterp and PythonLibs find different versions on Apple

2015-12-30 Thread Burlen Loring
After digging though a number of closed bug reports I found an open issue in mantis that describes the problem exactly and has a number of proposed solution. I took one of them(c39236) and this seems to do the trick. https://cmake.org/Bug/view.php?id=14809 On 12/23/2015 08:54 AM, Burlen Lorin

[CMake] Add support for cross compiling to VxWorks

2015-12-30 Thread Kuhl, Brian
Hi CMake Experts, I'm trying to add support for VxWorks to CMake. My current dilemma is that the Compiler ID link test is failing because my library link path isn't being used, and libraries aren't being found. I've set the library path in all the obvious places ( or so I thought,) what setting

[CMake] Cannot set FOLDER property to an interface (header-only) target

2015-12-30 Thread Klaim - Joël Lamotte
The following CMake script: cmake_minimum_required(VERSION 3.4) add_library( mylib INTERFACE ) set_property( TARGET mylib PROPERTY FOLDER /some/dir ) Will trigger this error on configuration: CMake Error at CMakeLists.txt:4 (set_property): INTERFACE_LIBRARY targets may on

Re: [CMake] Is there a way to disable adding extra libraries at the end of a link line?

2015-12-30 Thread Chuck Atkins
The error itself I believe is a side effect of CMake trying to operate assuming it's using normal Linux, which makes some assumptions regarding shared runtime libraries for libc, position independent code, etc. The default behaviour of the Cray compiler wrappers, however, is to create fully static

Re: [CMake] Is there a way to disable adding extra libraries at the end of a link line?

2015-12-30 Thread Chuck Atkins
Hi John, Can you try using the new Cray platform file? It should better handle the implicit libs and dirs used by the compiler wrappers if you have the appropriate modules loaded (cray-hdf5 for HDF5 libs, craype-sandybridge or whatever your compute node CPU is for the -msse2 flag, etc.): cmake -

[CMake] Get target name from command line for IF statement

2015-12-30 Thread yann suisini
Hi, I have a cmake file with 2 targets defined inside. For each target I have to specify a different scatter file for my linker so I want to use : if (TARGET target_1) SET (LINKER_SCATTER_FILE file_1) else () SET (LINKER_SCATTER_FILE file_2) endif () add_executable(target_1 ${srcs_target_1}) add