From f1d7ad8129b55ad8accd9a313e693f8b7c0a49a4 Mon Sep 17 00:00:00 2001 From: nihui Date: Wed, 3 Apr 2019 08:52:02 +0800 Subject: [PATCH] fix build cpp examples option (#14562) --- cpp-package/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp-package/CMakeLists.txt b/cpp-package/CMakeLists.txt index 5d2977279d74..fec86e78e6b8 100644 --- a/cpp-package/CMakeLists.txt +++ b/cpp-package/CMakeLists.txt @@ -16,7 +16,7 @@ if(USE_CPP_PACKAGE) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts ) - if(NOT DO_NOT_BUILD_EXAMPLES) + if(BUILD_CPP_EXAMPLES) add_subdirectory(example) endif()