diff options
author | Nickolai Korshunov <n.korshunov@corp.mail.ru> | 2021-11-11 14:46:03 +0300 |
---|---|---|
committer | Nickolai Korshunov <n.korshunov@corp.mail.ru> | 2021-11-11 15:19:16 +0300 |
commit | 5336c7e97b49c95203ae9d21eb6137d39a65f45e (patch) | |
tree | 92bae5f66684dd344196fe3e7f9a62fcf40d3614 | |
parent | fd76008f63c6ef277d3ba61b5c3e0e28e782ff24 (diff) | |
download | redot-cpp-5336c7e97b49c95203ae9d21eb6137d39a65f45e.tar.gz |
synced windows compile definitions with scons configuration
df9164b9bd7b4505a9918212e39451b75a38a7d7
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 772d29f..0519cae 100644 --- a/CMakeLists.txt +++ b/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 |