From d4c30d9b7b339971ff659973b902447706169a99 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 21 Jan 2014 20:23:51 +0100 Subject: [PATCH] Fixed build of examples. --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25f74e64..b08d7c79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,10 +340,6 @@ OPTION( ON ) -IF(VMIME_BUILD_SAMPLES) - ADD_SUBDIRECTORY(examples) -ENDIF() - ############################################################################## # Packaging / Distribution @@ -1064,6 +1060,14 @@ IF(VMIME_HAVE_MESSAGING_PROTO_SENDMAIL) ENDIF() +############################################################################## +# Build examples + +IF(VMIME_BUILD_SAMPLES) + ADD_SUBDIRECTORY(examples) +ENDIF() + + # Set our configure file CONFIGURE_FILE(cmake/config.hpp.cmake ${CMAKE_SOURCE_DIR}/src/vmime/config.hpp)