Skip to content

Commit

Permalink
CmakeListsのコメントを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
minecraftacted committed Oct 9, 2022
1 parent 33107c3 commit 74cef64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ target_link_directories(kamige- PRIVATE third_party/SDL2-2.24.0/lib/x64 PRIVATE
target_link_libraries(kamige- SDL2 SDL2main SDL2_image)


if(MSVC)#もしvc++だったら
message("This compiller is MSVC.")#メッセージ表示
target_compile_options(kamige- PRIVATE /W4 /WX)#コンパイルオプション設定(/W4=警告を最大限表示 /WX=警告をエラーとして扱う)
else()#VC++じゃなかったら(GCCとか)
message(FATAL_ERROR "Compilers other than MSVC are not supported.")#FATAL_ERRORで強制終了
if(MSVC)
message("This compiller is MSVC.")
target_compile_options(kamige- PRIVATE /W4 /WX)
else()
message(FATAL_ERROR "Compilers other than MSVC are not supported.")
endif()

0 comments on commit 74cef64

Please sign in to comment.