summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-16 00:37:01 +0800
committerruki <[email protected]>2022-07-16 00:37:01 +0800
commitbef356f0499e34bbf24c10c4f55a47e3c2e8ea40 (patch)
tree22bee3f45e12ff1cc8ba67d157d4f36273aa7c13
parent88d14766f002553702706e11a0670dfb36a16809 (diff)
fix cmake find_package
-rw-r--r--xmake/modules/package/manager/cmake/find_package.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/package/manager/cmake/find_package.lua b/xmake/modules/package/manager/cmake/find_package.lua
index 16ea1dadf..e4890ad68 100644
--- a/xmake/modules/package/manager/cmake/find_package.lua
+++ b/xmake/modules/package/manager/cmake/find_package.lua
@@ -80,10 +80,10 @@ function _find_package(cmake, name, opt)
testname, name:upper(), name:upper())
cmakefile:print(" target_include_directories(%s PRIVATE ${%s_CXX_INCLUDE_DIRS})",
testname, name)
- cmakefile:print(" target_link_libraries(%s %s ${%s_LIBRARY} ${%s_LIBRARIES} ${%s_LIBS})",
- testname, name, name, name, name)
- cmakefile:print(" target_link_libraries(%s %s ${%s_LIBRARY} ${%s_LIBRARIES} ${%s_LIBS})",
- testname, name:upper(), name:upper(), name:upper(), name:upper())
+ cmakefile:print(" target_link_libraries(%s ${%s_LIBRARY} ${%s_LIBRARIES} ${%s_LIBS})",
+ testname, name, name, name)
+ cmakefile:print(" target_link_libraries(%s ${%s_LIBRARY} ${%s_LIBRARIES} ${%s_LIBS})",
+ testname, name:upper(), name:upper(), name:upper())
cmakefile:print("endif(%s_FOUND)", name)
cmakefile:close()