-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql package 查找时指定moduledirs无效的问题 #2160
Comments
更新脚本中的cp 命令是不是复制错了目录? cd "$1" |
? |
你之前怎么装的?不建议走 apt 或者 make install 安装,无法支持 xmake update 建议用 官网和 readme 的一键安装脚本安装 |
更新过后,可以用 moduledirs 了,另外 不要用相对路径,xmake 内部自动创建的 tmp cmake repo 去探测,你传 ../cmake ,怎么可能知道在哪里。。用 os.scriptdir() 获取当前脚本路径,+ path.join |
嗯,我用的是绝对路径,我想问下xmake有没有像cmake一样的一些通用路径变量,如cmake_source_dir |
上面贴了,os.scriptdir()
|
好的,感谢 |
Xmake Version
v2.6.4+master.8dfd4c9
Operating System Version and Architecture
manjaro kernel version 5.15.25
Describe Bug
cmake version 3.22.2
xmake file
add_requires(
"cmake::MySQL",
{
system = true,
configs = {
envs = {
CMAKE_MODULE_PATH = {"..../cmake"}
},
moduledirs = {".../cmake"} //
}
}
)
add_requires("sqlpp11")
在使用sqlpp11 库的过程中,有mysql的依赖,在xmake require sqlpp11 后 手动添加mysql时,发现添加moduledirs路径后 会出现
cmake 错误
Expected Behavior
CMake Error at CMakeLists.txt:3 (add_cmake_modules):
Unknown CMake command "add_cmake_modules"
Project Configuration
add_requires(
"cmake::MySQL",
{
system = true,
configs = {
envs = {
CMAKE_MODULE_PATH = {"..../cmake"}
},
moduledirs = {".../cmake"} //
}
}
)
add_requires("sqlpp11")
Additional Information and Error Logs
No response
The text was updated successfully, but these errors were encountered: