Skip to content

Commit

Permalink
Rename target
Browse files Browse the repository at this point in the history
  • Loading branch information
plevold committed Apr 28, 2022
1 parent 441a7cd commit 363d025
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ https://github.com/cpm-cmake/CPM.cmake/[CMake Package Manager (CPM)]:
[source,cmake]
----
CPMAddPackage("https://github.com/SINTEF/fortran-error-handling.git@0.1.0")
target_link_libraries(<your target> fortran-error-handling)
target_link_libraries(<your target> error-handling)
----

//TODO:
Expand All @@ -141,7 +141,7 @@ If you don't want to use CPM you can either use
https://cmake.org/cmake/help/latest/module/FetchContent.html[FetchContent]
manually or add this repo as a git submodule to your project. Then in your
`CMakeLists.txt` add it as a subdirectory and use `target_link_libraries` to
link against `fortran-error-handling`.
link against `error-handling`.

=== Fortran Package Manager (FPM)

Expand Down
2 changes: 1 addition & 1 deletion cmake-project.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fortran-error-handling",
"name": "error-handling",
"version": "0.1.0",
"languages": ["Fortran"],
"linker_language": "Fortran",
Expand Down
9 changes: 4 additions & 5 deletions doc/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ the call stack.
It is also possible to programmatically identify and handle certain types or errors
without terminating the application.

//TODO: URL
But perhaps most interesting is the ability to generate stacktraces along with any
error when combined with the http://TODO:[fortran-stacktrace] library.
error when combined with the https://github.com/SINTEF/fortran-stacktrace[fortran-stacktrace]
library.
This means that you can easily make even old legacy code output errors messages like this:

image::stacktrace-example.png[]
Expand Down Expand Up @@ -50,8 +50,7 @@ include::../example/basic.f90[tag=run]
----

=== Generating Stacktraces
// TODO: URL
For enabling stacktraces from errors, see instructions http://TODO:[here].
For enabling stacktraces from errors, see instructions https://github.com/SINTEF/fortran-stacktrace#fortran-stacktrace[here].

== Building

Expand All @@ -70,7 +69,7 @@ https://github.com/cpm-cmake/CPM.cmake/[CMake Package Manager (CPM)]:
[source,cmake]
----
CPMAddPackage("https://github.com/SINTEF/fortran-error-handling.git@0.1.0")
target_link_libraries(<your target> fortran-error-handling)
target_link_libraries(<your target> error-handling)
----

//TODO:
Expand Down
2 changes: 1 addition & 1 deletion fpm.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "fortran-error-handling"
name = "error-handling"
version = "0.1.0"
license = "MIT"
author = "Pål Levold"
Expand Down

0 comments on commit 363d025

Please sign in to comment.