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()