From 9c339069acd9ab6355f8156f2e8eaf81c382342c Mon Sep 17 00:00:00 2001 From: Abdessattar Sassi <457645+abdes@users.noreply.github.com> Date: Fri, 5 Aug 2022 02:07:14 +0400 Subject: [PATCH] fix: add alaises used by cmake common functions The cmake common functions rely on variables named based on the PROJECT_NAME to decide if tests/examples are being built or not. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 232f5ff..f8b091c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,10 @@ option(ASAP_WITH_GOOGLE_TSAN "Instrument code with thread sanitizer" option(ASAP_WITH_VALGRIND "Builds targets with valgrind profilers added" OFF) # cmake-format: on +# Define the following alias variables used by the common cmake functions +set(${PROJECT_NAME}_BUILD_TEST ${ASAP_BUILD_TESTS}) +set(${PROJECT_NAME}_EXAMPLES ${ASAP_BUILD_EXAMPLES}) + # ------------------------------------------------------------------------------ # Project Declaration # ------------------------------------------------------------------------------