From da8aef4810c94560f5711799de4070337c1e5890 Mon Sep 17 00:00:00 2001 From: zerodefect Date: Tue, 30 Jan 2018 12:11:32 +0000 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b9875bc..9bcb914 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,11 @@ if(AMQP-CPP_LINUX_TCP) add_subdirectory(src/linux_tcp) endif() +# potentially build the examples +if(AMQP-CPP_BUILD_EXAMPLES) + add_subdirectory(examples) +endif() + # settings for specific compilers # ------------------------------------------------------------------------------------------------------ @@ -93,10 +98,6 @@ else() ) endif() -if(AMQP-CPP_BUILD_EXAMPLES) - add_subdirectory(examples) -endif() - # copy header files install(DIRECTORY include/amqpcpp/ DESTINATION include/amqpcpp FILES_MATCHING PATTERN "*.h")