在构建环境中将此宏设置为环境变量?
set this macro as an environment variable in the build environment?
在项目 属性 工作表中设置宏时 Visual Studio 中有一个选项说
set this macro as an environment variable in the build environment
例如下面的例子 window:
此复选框的用途是什么?
我在 VS 中定义了很多宏,选中或取消选中此复选框到目前为止没有任何明显的用途。
好的,我有 Hans Passant 在我的问题下方的评论中发布的测试建议,想出了一个好主意!
运行 MSYS2 shell 来自 Visual Studio,通过使用 属性 sheet.
中的构建事件
属性 sheet 定义 一个带有 set this macro as an environment variable in the build environment
的宏
当我构建项目时,它会打开 MSYS2 shell 并将所有宏导入 shell。
现在我只需调用附加到项目的 bash shell 脚本并让 Visual Studio 使用 GNU 构建系统!!是的!
Visual Studio 中的自动工具。
谢谢汉斯!
在项目 属性 工作表中设置宏时 Visual Studio 中有一个选项说
set this macro as an environment variable in the build environment
例如下面的例子 window:
此复选框的用途是什么? 我在 VS 中定义了很多宏,选中或取消选中此复选框到目前为止没有任何明显的用途。
好的,我有 Hans Passant 在我的问题下方的评论中发布的测试建议,想出了一个好主意!
运行 MSYS2 shell 来自 Visual Studio,通过使用 属性 sheet.
中的构建事件属性 sheet 定义 一个带有 set this macro as an environment variable in the build environment
当我构建项目时,它会打开 MSYS2 shell 并将所有宏导入 shell。
现在我只需调用附加到项目的 bash shell 脚本并让 Visual Studio 使用 GNU 构建系统!!是的!
Visual Studio 中的自动工具。 谢谢汉斯!