Skip to content

Commit 8b42f10

Browse files
committed
doc: update target_link_libraries instructions.
1 parent 712bdb8 commit 8b42f10

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
@@ -462,13 +462,13 @@ compile time. Currently both a CPU and GPU device are available. To link
462462
one of these devices within CMake, use for example:
463463

464464
``` cpp
465-
target_link_libraries(myApp PRIVATE openvkl openvkl_module_cpu_device)
465+
target_link_libraries(myApp PRIVATE openvkl::openvkl openvkl::openvkl_module_cpu_device)
466466
```
467467
468468
or
469469
470470
``` cpp
471-
target_link_libraries(myApp PRIVATE openvkl openvkl_module_gpu_device)
471+
target_link_libraries(myApp PRIVATE openvkl::openvkl openvkl::openvkl_module_gpu_device)
472472
```
473473

474474
The application code must then first initialize Open VKL:

doc/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ To use the API, one of the implemented backends must be linked at compile time.
3535
Currently both a CPU and GPU device are available. To link one of these devices
3636
within CMake, use for example:
3737

38-
target_link_libraries(myApp PRIVATE openvkl openvkl_module_cpu_device)
38+
target_link_libraries(myApp PRIVATE openvkl::openvkl openvkl::openvkl_module_cpu_device)
3939

4040
or
4141

42-
target_link_libraries(myApp PRIVATE openvkl openvkl_module_gpu_device)
42+
target_link_libraries(myApp PRIVATE openvkl::openvkl openvkl::openvkl_module_gpu_device)
4343

4444
The application code must then first initialize Open VKL:
4545

0 commit comments

Comments
 (0)