1# Distributed under the OSI-approved BSD 3-Clause License. See accompanying 2# file Copyright.txt or https://cmake.org/licensing for details. 3 4# This module is shared by multiple languages; use include blocker. 5if(__COMPILER_CRAY) 6 return() 7endif() 8set(__COMPILER_CRAY 1) 9 10include(Compiler/CMakeCommonCompilerMacros) 11 12macro(__compiler_cray lang) 13 set(CMAKE_${lang}_VERBOSE_FLAG "-v") 14 set(CMAKE_${lang}_COMPILE_OPTIONS_PIC -h PIC) 15 set(CMAKE_${lang}_COMPILE_OPTIONS_PIE -h PIC) 16 set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-h PIC") 17endmacro() 18