[CMAKE] Use C_STANDARD property instead of command line option

Addendum to 64211aa696 and 19779b3f96
This commit is contained in:
Victor Perevertkin 2020-12-05 13:14:28 +03:00
parent 0db79d4aa9
commit 16e5ce8fb1
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
4 changed files with 5 additions and 14 deletions

View file

@ -53,7 +53,7 @@ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Wold-style-declaration>")
endif()
else()
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-std=gnu99;-Wno-microsoft>")
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Wno-microsoft>")
add_compile_options(-Wno-pragma-pack)
add_compile_options(-fno-associative-math)
add_compile_options(-fcommon)