Skip to content

Commit 3897786

Browse files
Merge pull request #66 from lacc97/system-doc
Fix documentation on using system-installed Matplot++
2 parents 7864cc3 + 34b9337 commit 3897786

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ If you are using CMake, you can then find Matplot++ with the usual `find_package
20532053
```cmake
20542054
find_package(Matplot++ REQUIRED)
20552055
# ...
2056-
target_link_libraries(my_target PUBLIC matplot)
2056+
target_link_libraries(my_target PUBLIC Matplot++::matplot)
20572057
```
20582058

20592059
CMake should be able to locate the `matplot++-config.cmake` script automatically if you installed the library under `/usr/local/` (Linux / Mac OS) or `C:/Program Files/` (Windows). Otherwise, you need to include your installation directory in `CMAKE_MODULE_PATH` first:
@@ -2062,7 +2062,7 @@ CMake should be able to locate the `matplot++-config.cmake` script automatically
20622062
list(APPEND CMAKE_MODULE_PATH put/your/installation/directory/here)
20632063
find_package(Matplot++ REQUIRED)
20642064
# ...
2065-
target_link_libraries(my_target PUBLIC matplot)
2065+
target_link_libraries(my_target PUBLIC Matplot++::matplot)
20662066
```
20672067

20682068
### Build from Source

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ If you are using CMake, you can then find Matplot++ with the usual `find_package
20352035
```cmake
20362036
find_package(Matplot++ REQUIRED)
20372037
# ...
2038-
target_link_libraries(my_target PUBLIC matplot)
2038+
target_link_libraries(my_target PUBLIC Matplot++::matplot)
20392039
```
20402040

20412041
CMake should be able to locate the `matplot++-config.cmake` script automatically if you installed the library under `/usr/local/` (Linux / Mac OS) or `C:/Program Files/` (Windows). Otherwise, you need to include your installation directory in `CMAKE_MODULE_PATH` first:
@@ -2044,7 +2044,7 @@ CMake should be able to locate the `matplot++-config.cmake` script automatically
20442044
list(APPEND CMAKE_MODULE_PATH put/your/installation/directory/here)
20452045
find_package(Matplot++ REQUIRED)
20462046
# ...
2047-
target_link_libraries(my_target PUBLIC matplot)
2047+
target_link_libraries(my_target PUBLIC Matplot++::matplot)
20482048
```
20492049

20502050
### Build from Source

0 commit comments

Comments
 (0)