From 4414f32585226d5d7c0f8d1edf1710d90d51ebbc Mon Sep 17 00:00:00 2001 From: Joan Sola <jsola@iri.upc.edu> Date: Tue, 15 Nov 2016 11:38:23 +0100 Subject: [PATCH] Swap the order of compilation, first tests, then examples --- src/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1d8631d2e..267261078 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -481,12 +481,6 @@ INSTALL(DIRECTORY ${SPDLOG_INCLUDE_DIRS} DESTINATION "include/iri-algorithms/") export(PACKAGE ${PROJECT_NAME}) -IF(BUILD_EXAMPLES) - #Build examples & tests - MESSAGE("Building examples.") - ADD_SUBDIRECTORY(examples) -ENDIF(BUILD_EXAMPLES) - ############# ## Testing ## ############# @@ -498,3 +492,9 @@ if(BUILD_TESTS) endif() +IF(BUILD_EXAMPLES) + #Build examples & tests + MESSAGE("Building examples.") + ADD_SUBDIRECTORY(examples) +ENDIF(BUILD_EXAMPLES) + -- GitLab