mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 03:29:06 +08:00
13476c9c93
* [sol2]Disable export namespace to fix usage issue. * [sol2]Re-fix namespace issue.
20 lines
631 B
Diff
20 lines
631 B
Diff
diff --git a/cmake/sol2-config.cmake.in b/cmake/sol2-config.cmake.in
|
|
index 70c448d..7965bc6 100644
|
|
--- a/cmake/sol2-config.cmake.in
|
|
+++ b/cmake/sol2-config.cmake.in
|
|
@@ -26,11 +26,11 @@ include("${CMAKE_CURRENT_LIST_DIR}/sol2-targets.cmake")
|
|
|
|
MESSAGE(STATUS ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
-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()
|
|
|
|
if(TARGET sol2_single)
|