[cmake-developers] New platform file for Cray Compute Node Linux
Rolf Eike Beer
eike at sf-mail.de
Sun Aug 17 04:57:47 EDT 2014
Chuck Atkins wrote:
> Updated to allow for static and shared libs (yes, you can use shared libs
> on a cray). The expectation is that your toolchain file will have the
> appropriate logic to deal with this. Something like:
>
> set(CMAKE_SYSTEM_NAME ComputeNodeLinux)
> ...
> if(DEFINED ENV{CRAYPE_LINK_TYPE} AND
> "$ENV{CRAYPE_LINK_TYPE}" EQUALS "dynamic")
> set(_CRAY_LINK_OPTS "-dynamic")
This looks wrong. There is no EQUALS operator in if, and EQUAL is for
comparing numbers. You probably just meant something like
if(ENV{CRAYPE_LINK_TYPE} STREQUAL "dynamic")
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140817/211b02c5/attachment-0002.sig>
More information about the cmake-developers
mailing list