1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Author: Alastair McKinstry <[email protected]>
Description: Add FPIC support
Different architectures may need -fpic/-fPIC to compile correctly. Allow
ecbuild to accept FPIC as a CMAKE variable.
Last-Updated: 2015-11-09
Forwarded: no
Index: metview-5.1.0/CMakeLists.txt
===================================================================
--- metview-5.1.0.orig/CMakeLists.txt
metview-5.1.0/CMakeLists.txt
@@ -703,6 703,9 @@ endif()
# -------------------------
# compiler-specific options
# -------------------------
ecbuild_add_cxx_flags("${FPIC}")
ecbuild_add_c_flags("${FPIC}")
ecbuild_add_fortran_flags("${FPIC}")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
ecbuild_add_cxx_flags("-fpermissive -Wno-write-strings -Wno-deprecated")
|