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
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
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
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
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 -
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