1
1

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 3 years have passed since last update.

Visual Studio では CMAKE_BUILD_TYPE=Release 指定しても無視される

Posted at

CMAKE_BUILD_TYPE=Release としても Visual Studio で .sln 開くと VS 上では Debug がデフォルトになる...

Visual Studio では, .sln を開いたときのデフォルトのビルドタイプは指定できませんでした. :cry:

GUI でやる場合は手動で切り替えが必要です
(CMake スクリプトを頑張ればなにかうまくやれるかもであるが)

Visual Studio 2019 では, CMakeSettings.json or CMakePresets.json で, デフォルトのビルドタイプを設定できるでしょう(未検証)

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?