1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Premakeで「警告をエラーとして扱う」を設定

Last updated at Posted at 2016-10-17

環境

Windows 7
Visual Studio 2012
Premake 5.0 alpha 9

Premake

このあたりを参照。
ビルドツールpremakeの紹介
Premakeで「追加の依存ファイル」を設定する

記述方法

flags {"FatalWarnings"} を追加する

premake5
workspace "sample"
  location "build_premake"
  configurations { "Debug", "Release" }

  project "sample"
    kind            "ConsoleApp"                     
    language        "C++"
    targetdir       "build_premake/%{cfg.buildcfg}"
    files           { "src/**.h", "src/**.cpp", }

    flags           { "FatalWarnings" }              -- 警告が全てエラー扱いになる。(/WX)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?