Skip to content

Commit

Permalink
fix: add alaises used by cmake common functions
Browse files Browse the repository at this point in the history
The cmake common functions rely on variables named based on the PROJECT_NAME
to decide if tests/examples are being built or not.
  • Loading branch information
abdes committed Aug 4, 2022
1 parent 4dc31df commit 9c33906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 9c33906

Please sign in to comment.