Revert "Build specific example using -DBUILD_EXAMPLE cmake flag (#3921)" (#3922)

This reverts commit c1fd98591d.
This commit is contained in:
Benji
2024-04-19 02:43:24 -04:00
committed by GitHub
parent c1fd98591d
commit b00e467494
3 changed files with 4 additions and 22 deletions

View File

@ -59,10 +59,7 @@ if(NOT TARGET uninstall)
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()
if (NOT ${BUILD_EXAMPLE} STREQUAL "")
MESSAGE(STATUS "Building example '${BUILD_EXAMPLE}'")
add_subdirectory(examples)
elseif (${BUILD_EXAMPLES})
if (${BUILD_EXAMPLES})
MESSAGE(STATUS "Building examples is enabled")
add_subdirectory(examples)
endif()