diff --git a/modules/conop/tests/CMakeLists.txt b/modules/conop/tests/CMakeLists.txt
index 29140807826e25e812d312371013f9ca96e2b3bd..a0c348ac5fb2337c3ed3a3e521c26e300d87404d 100644
--- a/modules/conop/tests/CMakeLists.txt
+++ b/modules/conop/tests/CMakeLists.txt
@@ -2,13 +2,15 @@ set(OST_CONOP_UNIT_TESTS
   test_heuristic_conop.cc
   tests.cc
   test_rule_based_conop.cc 
-  helper.cc 
-  test_compound.py
+  helper.cc
   test_cleanup.py
   test_processor.py
   test_nonstandard.py
 )
 
+if (COMPOUND_LIB)
+  list(APPEND OST_CONOP_UNIT_TESTS test_compound.py)
+endif()
+
 ost_unittest(MODULE conop
              SOURCES "${OST_CONOP_UNIT_TESTS}")
-