diff --git a/CMakeLists.txt b/CMakeLists.txt index c2a6c7a..1142c7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project( LANGUAGES C Fortran - VERSION "1.4.3" + VERSION "1.4.4" ) set(CMAKE_Fortran_STANDARD 2018) set(CMAKE_Fortran_STANDARD_REQUIRED TRUE) diff --git a/doc/index.html b/doc/index.html index 3debde0..a9e2064 100644 --- a/doc/index.html +++ b/doc/index.html @@ -164,7 +164,7 @@

Derived Types

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/interface/error_callback.html b/doc/interface/error_callback.html index c200ac3..dfdd1af 100644 --- a/doc/interface/error_callback.html +++ b/doc/interface/error_callback.html @@ -223,7 +223,7 @@

Description

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/lists/modules.html b/doc/lists/modules.html index 4d41f90..2617688 100644 --- a/doc/lists/modules.html +++ b/doc/lists/modules.html @@ -107,7 +107,7 @@

Modules

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/lists/procedures.html b/doc/lists/procedures.html index 0613630..a9ccc66 100644 --- a/doc/lists/procedures.html +++ b/doc/lists/procedures.html @@ -107,7 +107,7 @@

Procedures

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/lists/types.html b/doc/lists/types.html index 0bac5cd..667095d 100644 --- a/doc/lists/types.html +++ b/doc/lists/types.html @@ -108,7 +108,7 @@

Derived Types

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/module/ferror.html b/doc/module/ferror.html index 4f1745f..c5f341a 100644 --- a/doc/module/ferror.html +++ b/doc/module/ferror.html @@ -571,7 +571,7 @@

Type-Bound Procedures

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/search.html b/doc/search.html index af2395e..410a665 100644 --- a/doc/search.html +++ b/doc/search.html @@ -119,7 +119,7 @@

Search Results

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/sourcefile/ferror.f90.html b/doc/sourcefile/ferror.f90.html index 48dc1aa..7e88209 100644 --- a/doc/sourcefile/ferror.f90.html +++ b/doc/sourcefile/ferror.f90.html @@ -674,7 +674,7 @@

Source Code

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/doc/type/errors.html b/doc/type/errors.html index 32c8efb..5663c6b 100644 --- a/doc/type/errors.html +++ b/doc/type/errors.html @@ -1487,7 +1487,7 @@

Arguments

Documentation generated by FORD - on 2025-08-04 11:25

+ on 2025-08-05 12:19


diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 702a184..2331893 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -15,4 +15,15 @@ target_link_libraries(ferror_example_1c ferror) # Example 2 - C API add_executable(ferror_example_2c ferror_example_2c.c) -target_link_libraries(ferror_example_2c ferror) \ No newline at end of file +target_link_libraries(ferror_example_2c ferror) + +# Shared Library? +if (${BUILD_SHARED_LIBS}) + add_custom_command( + TARGET ferror_test + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + $ + ${CMAKE_BINARY_DIR}/test + ) +endif() \ No newline at end of file diff --git a/fpm.toml b/fpm.toml index 406153e..46debf0 100644 --- a/fpm.toml +++ b/fpm.toml @@ -1,5 +1,5 @@ name = "ferror" -version = "1.4.3" +version = "1.4.4" license = "GPL-3.0" author = "Jason Christopherson" maintainer = "Jason Christopherson" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0df9e57..b23ece7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,21 +37,23 @@ target_include_directories( $ ) -install( - FILES "${PROJECT_SOURCE_DIR}/include/ferror.h" - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} -) -target_include_directories( - ${PROJECT_NAME} PUBLIC - $ - $ -) +if (${BUILD_FERROR_C_API}) + install( + FILES ${ferror_SOURCE_DIR}/include/ferror.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + ) + target_include_directories( + ${PROJECT_NAME} PUBLIC + $ + $ + ) +endif() install( TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets - RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" - ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" - LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install(DIRECTORY ${FERROR_MOD_DIR} DESTINATION "${CMAKE_INSTALL_MODULEDIR}")