mirror of https://github.com/AxioDL/kabufuda.git
Merge pull request #6 from lioncash/flags
CMakeLists: Enable extra standards conformance flags on MSVC
This commit is contained in:
commit
a638632fbb
|
@ -20,6 +20,25 @@ add_library(kabufuda STATIC
|
|||
)
|
||||
|
||||
if(WIN32)
|
||||
if (MSVC)
|
||||
target_compile_options(kabufuda PRIVATE
|
||||
# Enforce various standards compliant behavior.
|
||||
/permissive-
|
||||
|
||||
# Enable standard volatile semantics.
|
||||
/volatile:iso
|
||||
|
||||
# Reports the proper value for the __cplusplus preprocessor macro.
|
||||
/Zc:__cplusplus
|
||||
|
||||
# Allow constexpr variables to have explicit external linkage.
|
||||
/Zc:externConstexpr
|
||||
|
||||
# Assume that new throws exceptions, allowing better code generation.
|
||||
/Zc:throwingNew
|
||||
)
|
||||
endif()
|
||||
|
||||
target_sources(kabufuda PRIVATE
|
||||
include/kabufuda/winsupport.hpp
|
||||
lib/kabufuda/AsyncIOWin32.cpp
|
||||
|
|
Loading…
Reference in New Issue