Skip to content

Commit 1895e69

Browse files
Merge pull request #30 from jchristopherson/v1.5.6
V1.5.6
2 parents b9e800f + 1166f8e commit 1895e69

5 files changed

Lines changed: 21 additions & 18 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.24)
33
project(
44
fstats
55
LANGUAGES Fortran
6-
VERSION 1.5.5
6+
VERSION 1.5.6
77
)
88
set(CMAKE_Fortran_STANDARD 2018)
99
set(CMAKE_Fortran_STANDARD_REQUIRED TRUE)

configure/template.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
include(CMakeFindDependencyMacro)
44
find_dependency(OpenMP COMPONENTS Fortran)
5-
6-
if (NOT BUILD_SHARED_LIBS)
7-
find_dependency(ferror QUIET)
8-
find_dependency(linalg QUIET)
9-
find_dependency(collections QUIET)
10-
endif()
5+
find_dependency(ferror QUIET)
6+
find_dependency(linalg QUIET)
7+
find_dependency(collections QUIET)
118

129
if(NOT TARGET "@PROJECT_NAME@::@PROJECT_NAME@")
1310
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake")

examples/CMakeLists.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# Include Dependencies
22
add_subdirectory(fortran_csv_module)
3-
include(FetchContent)
43

5-
FetchContent_Declare(
6-
fplot
7-
GIT_TAG "origin/master"
8-
GIT_REPOSITORY https://github.com/jchristopherson/fplot
9-
)
10-
FetchContent_MakeAvailable(fplot)
11-
set(fplot_LIBRARY fplot forcolormap)
4+
find_package(fplot)
5+
if (NOT fplot_FOUND)
6+
include(FetchContent)
7+
8+
FetchContent_Declare(
9+
fplot
10+
GIT_TAG "origin/master"
11+
GIT_REPOSITORY https://github.com/jchristopherson/fplot
12+
)
13+
FetchContent_MakeAvailable(fplot)
14+
set(fplot_LIBRARY fplot forcolormap)
15+
else()
16+
set(fplot_LIBRARY fplot::fplot)
17+
endif()
1218

1319
# Full Factorial Example
1420
add_executable(full_factorial_example full_factorial_example.f90)

fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "fstats"
2-
version = "1.5.5"
2+
version = "1.5.6"
33
license = "GPL-3.0"
44
author = "Jason Christopherson"
55
maintainer = "Jason Christopherson"

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ set_source_files_properties(
3333
include(FetchContent)
3434
find_package(OpenMP REQUIRED COMPONENTS Fortran)
3535
find_package(ferror QUIET)
36-
find_package(linalg 1.8.9 QUIET)
37-
find_package(collections 1.0.8 QUIET)
36+
find_package(linalg 1.8.10 QUIET)
37+
find_package(collections 1.0.9 QUIET)
3838
if (NOT ferror_FOUND)
3939
message(STATUS "FERROR could not be found. A reference version will be employed.")
4040
FetchContent_Declare(

0 commit comments

Comments
 (0)