CREATE_PROJECT: Fix condition for warning suppression
It should not include e.g. GCC 11.2.
This commit is contained in:
parent
9ab3af5ea1
commit
eef62b8b41
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ void CMakeProvider::writeWarnings(std::ofstream &output) const {
|
|||
output << ' ' << warning;
|
||||
}
|
||||
output << "\")\n";
|
||||
output << "\tif(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0)\n";
|
||||
output << "\tif(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12.0)\n";
|
||||
output << "\t\tset(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -Wno-address-of-packed-member\")\n";
|
||||
output << "\tendif()\n";
|
||||
output << "endif()\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue