Catamount.cmake 1.0 KB

1234567891011121314151617181920212223242526
  1. #Catamount, which runs on the compute nodes of Cray machines, e.g. RedStorm, doesn't support shared libs
  2. set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
  3. set(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
  4. set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "") # -shared
  5. set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
  6. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
  7. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
  8. set(CMAKE_LINK_LIBRARY_SUFFIX "")
  9. set(CMAKE_STATIC_LIBRARY_PREFIX "lib")
  10. set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
  11. set(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
  12. set(CMAKE_SHARED_LIBRARY_SUFFIX ".a") # .a
  13. set(CMAKE_EXECUTABLE_SUFFIX "") # .exe
  14. set(CMAKE_DL_LIBS "" )
  15. set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
  16. set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
  17. include(Platform/UnixPaths)
  18. set(CMAKE_CXX_LINK_SHARED_LIBRARY)
  19. set(CMAKE_CXX_LINK_MODULE_LIBRARY)
  20. set(CMAKE_C_LINK_SHARED_LIBRARY)
  21. set(CMAKE_C_LINK_MODULE_LIBRARY)