Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update feature/capgen from main 2022/01/09 #426

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
68425d3
Merge pull request #414 from climbfuji/merge_main_into_feature_capgen…
climbfuji Nov 7, 2021
87cb832
Remove Julie from email notifications in .travis.yml
climbfuji Nov 10, 2021
fb76eef
Add @mkavulich to CODEOWNERS
climbfuji Nov 18, 2021
4cdbddf
Merge pull request #415 from climbfuji/update_main_from_feature_capgen
climbfuji Nov 23, 2021
423befa
Major cleanup of cmake build config
climbfuji Dec 3, 2021
7f20c7a
Merge branch 'main' of https://github.com/NCAR/ccpp-framework into cl…
climbfuji Dec 3, 2021
f57e8ed
Remove Laurie from CODEOWNERS
Dec 6, 2021
1f0f9ef
Merge branch 'feature/laurie_retires' of https://github.com/llpcarson…
climbfuji Dec 13, 2021
64b5afd
Merge pull request #420 from climbfuji/cleanup_cmake_build_config
climbfuji Dec 14, 2021
f44ebc1
Easy stuff first: correct spelling, remove note about this being a un…
mkavulich Jan 6, 2022
4c4282a
Remove old, broken CI stuff, expand description of repository a littl…
mkavulich Jan 6, 2022
7764c79
Add documentation section pointing to other resources
mkavulich Jan 6, 2022
7190dab
None of these build or testing instructions seem to work; they appear…
mkavulich Jan 6, 2022
b8e86a1
"Physics Schemes" section can be removed, it is outdated and what is …
mkavulich Jan 6, 2022
ec67b88
Usage and Doc sections can be removed, outdated and irrelevant
mkavulich Jan 6, 2022
93669f8
Remove remainder of old sections based on feedback from CCPP team; xm…
mkavulich Jan 7, 2022
d360ca7
Removing outdated/obsolete "README_TODO"
mkavulich Jan 7, 2022
e7ecb34
Merge pull request #425 from mkavulich/update_readme
climbfuji Jan 7, 2022
18d0072
Merge branch 'main' of https://github.com/NCAR/ccpp-framework into HEAD
climbfuji Jan 10, 2022
47f0b72
Revert changes that should be in main only
climbfuji Jan 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ script:
notifications:
email:
recipients:
- [email protected]
- [email protected]
- [email protected]
on_success: always # default: change
Expand Down
64 changes: 9 additions & 55 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,90 +1,44 @@
# Set default project to unknown
if(NOT PROJECT)
message(STATUS "Setting CCPP project to 'unknown' as none was specified.")
set(PROJECT "Unknown")
endif (NOT PROJECT)

#------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.0)

project(ccpp_framework
VERSION 5.0.0
LANGUAGES Fortran)

# Use rpaths on MacOSX
set(CMAKE_MACOSX_RPATH 1)
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif(POLICY CMP0042)

#------------------------------------------------------------------------------
# Set package definitions
set(PACKAGE "ccpp-framework")
set(AUTHORS "Dom Heinzeller" "Grant Firl" "Laurie Carson")
string(TIMESTAMP YEAR "%Y")

#------------------------------------------------------------------------------
# CMake Modules
# Set the CMake module path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

#------------------------------------------------------------------------------
# Set OpenMP flags for C/C++/Fortran
if (OPENMP)
include(detect_openmp)
detect_openmp()
find_package(OpenMP REQUIRED)
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${OpenMP_Fortran_FLAGS}")
message(STATUS "Enable OpenMP support")
else (OPENMP)
message (STATUS "Disable OpenMP support")
endif (OPENMP)

#------------------------------------------------------------------------------
# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
# DH* TODO - TRY TO CHANGE THIS TO RELEASE AND SEE WHAT HAPPENS TO THE RESULTS
message(STATUS "Setting build type to 'Debug' as none was specified.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)

# *DH
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "Coverage")
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Bitforbit" "Release" "Coverage")
endif()

#------------------------------------------------------------------------------
# Request a static build
option(BUILD_SHARED_LIBS "Build a static library" OFF)

#------------------------------------------------------------------------------
# Enable code coverage
if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU" AND (CMAKE_BUILD_TYPE STREQUAL "Coverage"))
include(code_coverage)
list(APPEND LIBS "gcov")
# Pass debug/release flag to Fortran files for preprocessor
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG)
endif()

#------------------------------------------------------------------------------
# Enable testing
enable_testing()
# Request a static build
option(BUILD_SHARED_LIBS "Build a static library" OFF)

#------------------------------------------------------------------------------
# Add the sub-directories
# Source
add_subdirectory(src)
# Documentation
add_subdirectory(doc)

#------------------------------------------------------------------------------
# Configure and enable packaging
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Common Community Physics Package - Framework")
set(CPACK_PACKAGE_VENDOR "DTC NOAA/NCAR")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
set(CPACK_PACKAGE_INSTALL_DIRECTORY
"CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
set(CPACK_SOURCE_PACKAGE_FILE_NAME
"${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_GENERATOR "TBZ2")
set(CPACK_GENERATOR "TBZ2")

include(CPack)
Loading