adjust C++11 cmake settings on windows

This commit is contained in:
Peter Thorson committed 2014-11-04 06:52:44 -05:00
1 parent 56cdbcd1da
commit 6bda8f85d4
1 file changed
+8 -1
+8 -1
View File
@@ -87,7 +87,14 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
# C++11 defines
if (ENABLE_CPP11)
add_definitions (-D_WEBSOCKETPP_CPP11_STL_)
if (MSVC)
add_definitions (-D_WEBSOCKETPP_CPP11_FUNCTIONAL_)
add_definitions (-D_WEBSOCKETPP_CPP11_SYSTEM_ERROR_)
add_definitions (-D_WEBSOCKETPP_CPP11_RANDOM_DEVICE_)
add_definitions (-D_WEBSOCKETPP_CPP11_MEMORY_)
else()
add_definitions (-D_WEBSOCKETPP_CPP11_STL_)
endif()
endif ()
# Visual studio