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")