cmake生成错误
好的,我正在构建一个项目,该项目可以使用 Visual Studio 2010 提供的 .cmd 脚本和 cmakelists.txt 成功编译,但在 2010 中它给出了以下错误:
1>Cl编译:
1> Microsoft (R) C/C++ 优化编译器版本 16.00.40219.01 对于 x64
1>版权所有 (C) 微软公司。保留所有权利。
1>
1> cl /c /W3 /WX- /O2 /Ob2 /D _WINDOWS /D NDEBUG /D
"CMAKE_INTDIR=\"释放\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:精确
/Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Release\"
/Fd"C:/alembic/out/i64/CMakeFiles/CMakeTmp/Release/cmTryCompileExec.pdb" /Gd /TC /wd4267 /wd4800 /wd4018 /wd4244 /errorReport:提示
“C:\alembic\out\i64\CMakeFiles\CMakeTmp\testCCompiler.c” _调试/Zm10001>
1> testCCompiler.c
1> _调试
1>c1:致命错误 C1083:无法打开源文件:“_DEBUG”:没有这样的文件 文件或目录
1>生成代码...
1>
1>构建失败。
这是命令,我想获得更改的帮助
setlocal
if /i "%1" == "db:" (
set DB=_db
set config=Debug
set linkFolderName=Debug
set boost_suffix=-sgd
set cmake_flags=/MTd /D_DEBUG /EHsc /GR
set zlib_suffix=d
shift
) ELSE (
set config=RelWithDebInfo
set linkFolderName=Release
set DB=
set boost_suffix=-s
set zlib_suffix=
set cmake_flags=/MT /U _DEBUG /EHsc /GR
)
)
,谢谢,
如果我可以提供更多信息,请告诉我
ok, i'm building a project that compiles successfully with provided .cmd script and cmakelists.txt with visual studio 2010 but with 2010 it gives me following error:
1>ClCompile:
1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01
for x641> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /W3 /WX- /O2 /Ob2 /D _WINDOWS /D NDEBUG /D
"CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise
/Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Release\"
/Fd"C:/alembic/out/i64/CMakeFiles/CMakeTmp/Release/cmTryCompileExec.pdb" /Gd /TC /wd4267 /wd4800 /wd4018 /wd4244 /errorReport:prompt
"C:\alembic\out\i64\CMakeFiles\CMakeTmp\testCCompiler.c"
_DEBUG /Zm10001>
1> testCCompiler.c
1> _DEBUG
1>c1 : fatal error C1083: Cannot open source file: '_DEBUG': No such
file or directory1> Generating Code...
1>
1>Build FAILED.
and here is command i would like to get help to change
setlocal
if /i "%1" == "db:" (
set DB=_db
set config=Debug
set linkFolderName=Debug
set boost_suffix=-sgd
set cmake_flags=/MTd /D_DEBUG /EHsc /GR
set zlib_suffix=d
shift
) ELSE (
set config=RelWithDebInfo
set linkFolderName=Release
set DB=
set boost_suffix=-s
set zlib_suffix=
set cmake_flags=/MT /U _DEBUG /EHsc /GR
)
)
thanks,
and please let me know if i can provide more info
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论