diff --git a/CMakeLists.txt b/CMakeLists.txt index 9876a0d7ef..5e4746418d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,11 @@ endif() include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros/TargetPython.cmake") target_python() +if (WIN32) + # Force x64 toolset + set(CMAKE_GENERATOR_TOOLSET "host=x64" CACHE STRING "64-bit toolset" FORCE) +endif() + # set our OS X deployment target # (needs to be set before first project() call and before prebuild.py) # Will affect VCPKG dependencies