2019-09-26 20:43:46 +08:00
|
|
|
diff --git a/cmake/sol2-config.cmake.in b/cmake/sol2-config.cmake.in
|
2022-06-28 02:47:49 +08:00
|
|
|
index 0c48a99..62930db 100644
|
2019-09-26 20:43:46 +08:00
|
|
|
--- a/cmake/sol2-config.cmake.in
|
|
|
|
+++ b/cmake/sol2-config.cmake.in
|
2022-06-28 02:47:49 +08:00
|
|
|
@@ -24,9 +24,9 @@
|
2019-09-26 20:43:46 +08:00
|
|
|
|
2022-06-28 02:47:49 +08:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/sol2-targets.cmake")
|
2019-09-26 20:43:46 +08:00
|
|
|
|
|
|
|
-if (TARGET sol2)
|
|
|
|
+if (TARGET sol2::sol2)
|
|
|
|
get_target_property(SOL2_INCLUDE_DIRS
|
|
|
|
- sol2 INTERFACE_INCLUDE_DIRECTORIES)
|
|
|
|
+ sol2::sol2 INTERFACE_INCLUDE_DIRECTORIES)
|
|
|
|
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_INCLUDE_DIRS}")
|
|
|
|
- set(SOL2_LIBRARIES sol2)
|
|
|
|
+ set(SOL2_LIBRARIES sol2::sol2)
|
|
|
|
endif()
|