Comments (5)
Bot detected the issue body's language is not English, translate it automatically.
Title: Create cmakelist exception
Xmake version
v2.8.8+HEAD.d8e248255
Operating system version and architecture
Window10
Describe the problem
Using xmake project -k cmakelists
Error: @programdir\core\main.lua:306: @programdir\plugins\project\cmake\cmakelists.lua:200: bad argument #1 to 'is_absolute' (string expected, got table)
Debugging found that it was caused by set_policy("windows.manifest.uac", "admin")
After adding set_policy("windows.manifest.uac", "admin") to the project, the flag will be a table {
"/manifestuac:level='requireAdministrator' uiAccess='false'",
wrap_locked = true
} causing problems
Expected results
normal build
Project configuration
add_rules("mode.debug", "mode.release")
add_rules("plugin.compile_commands.autoupdate")
add_rules("plugin.vsxmake.autoupdate")
set_encodings("source:utf-8", "target:utf-8")
add_defines("_UNICODE", "UNICODE")
set_policy("windows.manifest.uac", "admin")
Others are normal project configurations
Additional information and error logs
error: @programdir\core\main.lua:306: @programdir\plugins\project\cmake\cmakelists.lua:200: bad argument #1 to 'is_absolute' (string expected, got table)
[C]: in function 'is_absolute'
[@programdir\plugins\project\cmake\cmakelists.lua:200]: in function '_translate_flag'
[@programdir\plugins\project\cmake\cmakelists.lua:930]: in function '_add_target_link_options'
[@programdir\plugins\project\cmake\cmakelists.lua:1136]: in function '_add_target'
[@programdir\plugins\project\cmake\cmakelists.lua:1156]: in function '_generate_cmakelists'
[@programdir\plugins\project\cmake\cmakelists.lua:1170]: in function '?'
[@programdir\plugins\project\main.lua:75]: in function '_make'
[@programdir\plugins\project\main.lua:95]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:280]:
[@programdir\core\base\task.lua:491]: in function 'run'
[@programdir\core\main.lua:304]: in function 'cotask'
[@programdir\core\base\scheduler.lua:404]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:957: in function 'os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:306: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>
from xmake.
再试试 xmake update -s dev
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Try xmake update -s dev
again
from xmake.
ok 了
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
ok
from xmake.
Related Issues (20)
- 在if判断内通过set_config设置qt路径无效 HOT 3
- xmake fails to find host macOS toolchain HOT 5
- 使用远程库构建时updating repositories阶段存在版本管理相关报错导致失败 HOT 3
- xmake test 在windows平台无法正确同时设置多个add_test("test",{run_timeout(1000)}) HOT 9
- gnu-rm下,汇编文件week函数无法被同名文件覆盖 HOT 4
- xrepo 很多 action 都失效了,会提示找不到 xmake.lua HOT 5
- mktemp usage messages during configure HOT 2
- Error-prone xmake behaviour when locating system packages HOT 2
- wrong include flag when using system llvm HOT 2
- Build failure when output of `uname -m` contains a space (e.g. on PowerPC Macs) HOT 2
- msvc 编译模块报错:attempt to concatenate a nil value (local 'bmifile') HOT 3
- cmakelists 生成不支持编译器 flags HOT 12
- Add os.timestamp api HOT 7
- Incorrect PKG_CONFIG_PATH path separator with meson HOT 25
- tests/projects/package/llvm_dev/xmake.lua 示例无法正常构建,报错LINK : fatal error LNK1181: 无法打开输入文件“MLIRAMX.lib” HOT 1
- Generated Cmakelists file seems to be wrong when you use conditional add_files() HOT 2
- CSharp with mono HOT 1
- 动态库set_version的soname配置交叉编译平台不生效 HOT 9
- nim building requires xmake build -r or else build doesn't see file changes HOT 3
- 编译项目时找不到主函数 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.