You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not rely on the CMAKE_BUILD_TYPE configuration variable in Windows
builds. This variable is ignored by MSVC, the build type is determined
during the build time based on the '--config' parameter.
There seems to be no way for disabling the proxy library build based on
the used config, so this change provides just notification messages on
all Windows builds and builds proxy library always.
Copy file name to clipboardExpand all lines: benchmark/CMakeLists.txt
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,11 @@
2
2
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
5
-
if(CMAKE_BUILD_TYPESTREQUAL"Debug")
6
-
message(WARNING"The benchmarks SHOULD NOT be run in the Debug build type!")
5
+
# In MSVC builds, there is no way to determine the actual build type during the
6
+
# CMake configuration step. Therefore, this message is printed in all MSVC
7
+
# builds.
8
+
if(WINDOWSORNOTCMAKE_BUILD_TYPESTREQUAL"Release")
9
+
message(STATUS"The benchmarks SHOULD NOT be run in the Debug build type! The benchmarks will be built, however it is supported only in the Release build!")
0 commit comments