Browse Source

synced windows compile definitions with scons configuration

df9164b9bd7b4505a9918212e39451b75a38a7d7
Nickolai Korshunov 3 years ago
parent
commit
5336c7e97b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      CMakeLists.txt

+ 5 - 0
CMakeLists.txt

@@ -151,6 +151,11 @@ target_compile_definitions(${PROJECT_NAME} PUBLIC
 	$<$<CONFIG:Debug>:DEBUG_ENABLED>
 	$<$<CONFIG:Debug>: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