From f6b6f1df9744c272b4714370dd6867019dae7508 Mon Sep 17 00:00:00 2001 From: dhewg Date: Fri, 6 Jul 2012 00:28:26 +0200 Subject: [PATCH] Correct the cpu type for 64bit msvc --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ec2ac6..c86cb8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,10 @@ if (cpu STREQUAL "x86_64" AND X86) set(cpu "x86") endif() +if (MSVC AND CMAKE_CL_64) + set(cpu "amd64") +endif() + # target os if (APPLE) set(os "macosx")