threeal / CheckWarning.cmake

Check for compiler warnings in your CMake project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Merge `FLAGS` and `MSVC_FLAGS` Parameters into One

threeal opened this issue · comments

This issue proposes combining the FLAGS and MSVC_FLAGS options in the target_check_warning function into a unified option. To differentiate flag settings between MSVC and non-MSVC, CMake's conditional expression can be utilized, effectively remove the need to separate FLAGS and MSVC_FLAGS options.