diff --git a/CMakeLists.txt b/CMakeLists.txt index 2acfd08051c..6d70cf0ae2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -354,7 +354,6 @@ target_include_directories(oneDPL # Setup tests ############################################################################### if (NOT _onedpl_is_subproject) - enable_testing() add_subdirectory(test) endif() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index fc517f500e1..318ce3ddaf9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,6 +11,8 @@ # See https://llvm.org/LICENSE.txt for license information. # ##===----------------------------------------------------------------------===## +enable_testing() + add_subdirectory(kt) # rng_tests