Skip to content

Commit

Permalink
fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 21, 2021
1 parent b31e01b commit e3f1629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -681,8 +681,8 @@ else()
endif()

if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8 /std:c++17")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8 /std:c++17")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
# disable macros that offend std::numeric_limits<T>::min()/max()
Expand Down
6 changes: 3 additions & 3 deletions src/core/settings/qgssettingsentry.h
Expand Up @@ -857,7 +857,7 @@ class CORE_EXPORT QgsSettingsEntryDouble : public QgsSettingsEntryBase
* \since QGIS 3.20
*/
template <typename T>
class CORE_EXPORT QgsSettingsEntryEnumFlagBase : public QgsSettingsEntryBase
class QgsSettingsEntryEnumFlagBase : public QgsSettingsEntryBase
{
public:

Expand Down Expand Up @@ -1014,7 +1014,7 @@ class CORE_EXPORT QgsSettingsEntryEnumFlagBase : public QgsSettingsEntryBase
* \since QGIS 3.20
*/
template <typename T>
class CORE_EXPORT QgsSettingsEntryEnum : public QgsSettingsEntryEnumFlagBase<T>
class QgsSettingsEntryEnum : public QgsSettingsEntryEnumFlagBase<T>
{
public:

Expand Down Expand Up @@ -1058,7 +1058,7 @@ class CORE_EXPORT QgsSettingsEntryEnum : public QgsSettingsEntryEnumFlagBase<T>
* \since QGIS 3.20
*/
template <typename T>
class CORE_EXPORT QgsSettingsEntryFlag : public QgsSettingsEntryEnumFlagBase<T>
class QgsSettingsEntryFlag : public QgsSettingsEntryEnumFlagBase<T>
{
public:

Expand Down

0 comments on commit e3f1629

Please sign in to comment.