vcpkg/ports/luminoengine/fix-cmake-config.patch
jim wang d5bc0e71e0
[vcpkg baseline] [luminoengine] Fix cann't find luminoengine.lib (#29879)
* [luminoengine] Fix cannot find luminoengine library

* update version

* update version database

* fix review

* update version

* rename patch

* update version

* fix ci error

* update version

* fix ci error

* update version
2023-02-27 18:15:36 -08:00

16 lines
694 B
Diff

diff --git a/cmake/LuminoConfig.cmake.in b/cmake/LuminoConfig.cmake.in
index 283ad47..aa9bfd8 100644
--- a/cmake/LuminoConfig.cmake.in
+++ b/cmake/LuminoConfig.cmake.in
@@ -13,5 +13,9 @@ include("${CMAKE_CURRENT_LIST_DIR}/LuminoTargets.cmake")
# Combination target
#-------------------------------------------------------------------------------
add_library(lumino::Lumino INTERFACE IMPORTED)
-target_link_libraries(lumino::Lumino INTERFACE lumino::LuminoEngine lumino::LuminoCore)
+if(LUMINO_BUILD_ENGINE)
+ target_link_libraries(lumino::Lumino INTERFACE lumino::LuminoEngine lumino::LuminoCore)
+else()
+ target_link_libraries(lumino::Lumino INTERFACE lumino::LuminoCore)
+endif()