1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
# (C) Copyright 2011- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation nor
# does it submit to any jurisdiction.
# general options
option( BUILD_SHARED_LIBS "build shared libraries when possible" ON )
option( ENABLE_RPATHS "when installing insert RPATHS into binaries" ON )
mark_as_advanced( ENABLE_RPATHS )
option( ENABLE_RELATIVE_RPATHS "try to use relative RPATHS, including build dir" ON )
mark_as_advanced( ENABLE_RELATIVE_RPATHS )
option( ENABLE_LARGE_FILE_SUPPORT "build with large file support" ON )
mark_as_advanced( ENABLE_LARGE_FILE_SUPPORT )
option( ENABLE_PROFILING "build with profiling support" OFF )
mark_as_advanced( ENABLE_PROFILING )
option( ENABLE_FORTRAN_C_INTERFACE "Enable Fortran/C Interface" OFF )
mark_as_advanced( ENABLE_FORTRAN_C_INTERFACE )
option( CHECK_UNUSED_FILES "check for unused project files (slow)" OFF )
mark_as_advanced( CHECK_UNUSED_FILES )
option( ECBUILD_INSTALL_LIBRARY_HEADERS "Will install library headers" ON )
mark_as_advanced( ECBUILD_INSTALL_LIBRARY_HEADERS )
option( ECBUILD_INSTALL_FORTRAN_MODULES "Will install Fortran modules" ON )
mark_as_advanced( ECBUILD_INSTALL_FORTRAN_MODULES )
option( ECBUILD_RECORD_GIT_COMMIT_SHA1 "When building ecbuild projects that are Git repos, create variables recording the full and short Git revision" ON )
mark_as_advanced( ECBUILD_RECORD_GIT_COMMIT_SHA1 )
include( CMakeDependentOption ) # make options depend on one another
set( CMAKE_NO_SYSTEM_FROM_IMPORTED ON )
# hide some CMake options from CMake UI
mark_as_advanced( CMAKE_OSX_ARCHITECTURES CMAKE_OSX_DEPLOYMENT_TARGET CMAKE_OSX_SYSROOT )
|