Skip to content

Commit

Permalink
fix: alias variable to enable/disable building tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Aug 4, 2022
1 parent 13a3143 commit 3992b0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ 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 All @@ -102,6 +98,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# Define the following alias variables used by the common cmake functions
set(${PROJECT_NAME}_BUILD_TESTS ${ASAP_BUILD_TESTS})
set(${PROJECT_NAME}_BUILD_EXAMPLES ${ASAP_BUILD_EXAMPLES})

# ------------------------------------------------------------------------------
# Additional CMake modules
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 3992b0f

Please sign in to comment.