From 0ccca05a50ffacef7e0f0c9877712744320d95ac Mon Sep 17 00:00:00 2001 From: Bassem Girgis Date: Thu, 15 Aug 2019 02:39:35 -0500 Subject: [PATCH] fix gbenchmark on windows --- google/benchmark/build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/google/benchmark/build.sh b/google/benchmark/build.sh index 59bcb83..4f0d4f9 100755 --- a/google/benchmark/build.sh +++ b/google/benchmark/build.sh @@ -80,14 +80,22 @@ elif [ "${machineArch}" = "Windows" ]; then cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \ - -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \ + -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \ -G "Visual Studio 16 2019" \ -A x64 \ $libSrcPath && \ cmake \ --build . \ --config Release \ - --target INSTALL && \ + --target INSTALL) + ( cd $libBuildPath && \ + cmake \ + -DCMAKE_BUILD_TYPE=Debug \ + -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \ + -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \ + -G "Visual Studio 16 2019" \ + -A x64 \ + $libSrcPath && \ cmake \ --build . \ --config Debug \