From 5336c7e97b49c95203ae9d21eb6137d39a65f45e Mon Sep 17 00:00:00 2001 From: Nickolai Korshunov Date: Thu, 11 Nov 2021 14:46:03 +0300 Subject: [PATCH] synced windows compile definitions with scons configuration df9164b9bd7b4505a9918212e39451b75a38a7d7 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 772d29fd..0519caec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,6 +151,11 @@ target_compile_definitions(${PROJECT_NAME} PUBLIC $<$:DEBUG_ENABLED> $<$:DEBUG_METHODS_ENABLED> ) + +if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") + target_compile_definitions(${PROJECT_NAME} PUBLIC TYPED_METHOD_BIND) +endif() + target_include_directories(${PROJECT_NAME} PUBLIC include ${CMAKE_CURRENT_BINARY_DIR}/gen/include