diff options
-rw-r--r-- | CMakeLists.txt | 12 |
1 files 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) |