diff --git a/tests/DCPS/CMakeLists.txt b/tests/DCPS/CMakeLists.txt index 1569486f171..c27e23d579d 100644 --- a/tests/DCPS/CMakeLists.txt +++ b/tests/DCPS/CMakeLists.txt @@ -6,4 +6,6 @@ find_package(OpenDDS REQUIRED) add_subdirectory(Compiler) add_subdirectory(HelloWorld) -add_subdirectory(Messenger) +if(OPENDDS_OWNERSHIP_PROFILE) + add_subdirectory(Messenger) +endif()