首页 > 解决方案 > 使用 Premake 在 Properties->C/C++->Command Line 中添加其他选项

问题描述

我需要将“/FS”添加到属性->C/C++->命令行->附加选项。

我的(缩短的)premake.lua:

workspace "test_refactor_edit_control_01"
    platforms { "Win32", "64" }
    configurations { "Debug", "Release" }

    filter "platforms:Win32"
        architecture "x86"

    filter "platforms:64"
        architecture "x64"

project "test_refactor_edit_control_01"
    location "test_refactor_edit_control_01"
    kind "WindowedApp"
    language "C++"
    staticruntime "Off"

    targetdir ("bin/" .. outputdir .. "/%{prj.name}")
    objdir ("bin-int/" .. outputdir .. "/%{prj.name}")

... (Few more things; nothing special)

使用 Premake5 和 VS2019

标签: visual-studiopremake

解决方案


添加应该足够了

buildoptions{"/FS"}

推荐阅读