From 8283b56a5d16c2d0b743cfd5c3335281bf47b86e Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Fri, 2 Mar 2018 09:51:08 -0500 Subject: [PATCH] Update CMakeLists.txt to support gtest linking for Windows --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 052ef10d..27d83ec4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,6 +142,11 @@ else () set (ARGON_CORE phc-winner-argon2/src/ref.c) endif () +if (WIN32) + set (gtest_force_shared_crt ON) +else () + set (gtest_force_shared_crt OFF) +endif() add_subdirectory (gtest) include_directories ("gtest/include")