Commit 793427ac authored by Sonja Happ's avatar Sonja Happ

only build unit tests of common if project is toplevel project

parent 43fd33c9
......@@ -63,7 +63,7 @@ pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.7)
pkg_check_modules(LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9)
add_subdirectory(lib)
if(CRITERION_FOUND)
if(CRITERION_FOUND AND TOPLEVEL_PROJECT)
add_subdirectory(tests)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment