From 7480b28711d26970b69909c3aaf4fb8c2c3fb4b1 Mon Sep 17 00:00:00 2001 From: Oksana Shadura Date: Mon, 26 Feb 2018 13:57:25 +0100 Subject: [PATCH] Forcing a Release build for Googlebenchmark --- cmake/modules/GoogleBenchmark.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/GoogleBenchmark.cmake b/cmake/modules/GoogleBenchmark.cmake index 62f646f6..4815abba 100644 --- a/cmake/modules/GoogleBenchmark.cmake +++ b/cmake/modules/GoogleBenchmark.cmake @@ -19,7 +19,7 @@ ExternalProject_Add( # -Dgtest_force_shared_crt=ON CMAKE_ARGS -G ${CMAKE_GENERATOR} -DCMAKE_INSTALL_PREFIX:PATH=${GBENCHMARK_PREFIX} - -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} + -DCMAKE_BUILD_TYPE:STRING=RELEASE -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}