OSDN Git Service
(root)
/
yamml
/
yamml-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6293a16
)
VS 2015 Update 3 で変数テンプレートが正しく使えるようにした
author
starg
<starg@users.osdn.me>
Wed, 29 Jun 2016 05:03:11 +0000
(14:03 +0900)
committer
starg
<starg@users.osdn.me>
Wed, 29 Jun 2016 05:03:11 +0000
(14:03 +0900)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
7cbe1fb
..
dbee202
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-19,6
+19,10
@@
add_definitions(
-DYAMML_VERSION_BUILD=${PROJECT_VERSION_TWEAK}
)
+if(${MSVC14} AND (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 19.00.23918))
+ add_definitions(-D_HAS_VARIABLE_TEMPLATES=1)
+endif()
+
if(YAMMLStaticCRT)
# http://stackoverflow.com/questions/14172856/cmake-compile-with-mt-instead-of-md
set(CompilerFlags