Skip to content

Commit f85c0cc

Browse files
committed
CMake: find_package CONFIG
Use the CONFIG mode in find_package to avoid mismatch with previous `FindSplash.cmake` MODULEs.
1 parent 8fad466 commit f85c0cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Because we are linking to HDF5, the following **external dependencies** must be
7171
If you are using CMake and did extend the `CMAKE_PREFIX_PATH`, linking against libSplash in your `CMakeLists.txt` is as easy as:
7272
```cmake
7373
# optional: specifiy (minimal) version, require Splash and specific components, e.g.
74-
# (Splash 1.7.0 REQUIRED COMPONENTS PARALLEL)
75-
find_package(Splash 1.7.0 REQUIRED)
74+
# (Splash 1.7.0 REQUIRED CONFIG COMPONENTS PARALLEL)
75+
find_package(Splash 1.7.0 REQUIRED CONFIG)
7676
7777
target_link_libraries(YourTarget PUBLIC Splash::Splash)
7878
```

0 commit comments

Comments
 (0)