-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,077 additions
and
1,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/FortunoCoarrayTargets.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This file is part of Fortuno. | ||
# Licensed under the BSD-2-Clause Plus Patent license. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
|
||
# Sets up the build type. | ||
function (fortuno_coa_setup_build_type default_build_type) | ||
|
||
get_property(_multiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | ||
if(_multiConfig) | ||
message(STATUS "Build type multi-config (build type selected at the build step)") | ||
else() | ||
if(NOT CMAKE_BUILD_TYPE) | ||
message(STATUS "Build type ${default_build_type} (default single-config)") | ||
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Build type" FORCE) | ||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY HELPSTRING "Choose the type of build") | ||
set_property( | ||
CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "RelWithDebInfo" | ||
) | ||
else() | ||
message(STATUS "Build type: ${CMAKE_BUILD_TYPE} (manually selected single-config)") | ||
endif() | ||
endif() | ||
|
||
endfunction () | ||
|
||
|
||
# Defines the coarray target for coarray dependent parts | ||
function (fortuno_coa_def_coarray_target) | ||
|
||
if (FORTUNO_COA_COARRAY_COMPILER_FLAG) | ||
set(_compiler_flag "${FORTUNO_COA_COARRAY_COMPILER_FLAG}") | ||
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM") | ||
set(_compiler_flag "-coarray") | ||
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG") | ||
set(_compiler_flag "") | ||
endif () | ||
|
||
if (FORTUNO_COA_COARRAY_LINKER_FLAG) | ||
set(_linker_flag "${FORTUNO_COA_COARRAY_LINKER_FLAG}") | ||
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM") | ||
set(_linker_flag "-coarray") | ||
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG") | ||
set(_linker_flag "") | ||
endif () | ||
|
||
add_library(Coarray INTERFACE) | ||
target_compile_options(Coarray INTERFACE ${_compiler_flag}) | ||
target_link_options(Coarray INTERFACE ${_linker_flag}) | ||
|
||
endfunction () |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Name: @PROJECT_NAME@ | ||
Description: @PROJECT_DESCRIPTION@ | ||
Version: @PROJECT_VERSION@ | ||
|
||
Requires: fortuno | ||
Cflags: -I@CMAKE_INSTALL_FULL_LIBDIR@/@FORTUNO_COA_INSTALL_MODULEDIR@ | ||
Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lfortuno-coarray |
Oops, something went wrong.