mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 19:20:45 +03:00
First improvements for Visual Studio / MSVC users
- Added missing <array> includes - -Werror, -Wextra and -Wpedantic are used with GCC only - CXX_STANDARD_REQUIRED is now ON
This commit is contained in:
parent
c5233a6bf0
commit
7f7153100b
@ -40,7 +40,13 @@ endif()
|
|||||||
|
|
||||||
# Compilation settings
|
# Compilation settings
|
||||||
set_property(TARGET progressia PROPERTY CXX_STANDARD 17)
|
set_property(TARGET progressia PROPERTY CXX_STANDARD 17)
|
||||||
target_compile_options(progressia PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
set_property(TARGET progressia PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||||
|
target_compile_options(progressia PRIVATE -Wall)
|
||||||
|
|
||||||
|
# Extra options for gcc -- we're using this for extra static analisys for now
|
||||||
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
target_compile_options(progressia PRIVATE -Wextra -Wpedantic -Werror)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Version information
|
# Version information
|
||||||
if (NOT DEFINED BUILD_ID)
|
if (NOT DEFINED BUILD_ID)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define GLM_FORCE_RADIANS
|
#define GLM_FORCE_RADIANS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user