We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ca270 commit d068042Copy full SHA for d068042
1 file changed
CMakeLists.txt
@@ -10,6 +10,7 @@ include(GNUInstallDirs)
10
include(CTest)
11
12
option(IS_UTF8_SANITIZE "Sanitize addresses" OFF)
13
+option(IS_UTF8_BENCHMARKS "Build benchmarks" ${PROJECT_IS_TOP_LEVEL})
14
15
if (NOT CMAKE_BUILD_TYPE)
16
message(STATUS "No build type selected, default to Release")
@@ -42,8 +43,9 @@ else()
42
43
message(STATUS "The tests are disabled.")
44
endif(BUILD_TESTING)
45
-
46
-add_subdirectory(benchmarks)
+if (IS_UTF8_BENCHMARKS)
47
+ add_subdirectory(benchmarks)
48
+endif()
49
50
message(STATUS "Compiling using the C++ standard:" ${CMAKE_CXX_STANDARD})
51
# ---- Install rules ----
0 commit comments