diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f2bd9c3fdc5406b9661de0b0f675b3153176fad..94399912eef06b7757bde9f55f2c35b4dd8cece7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,6 +185,9 @@ export(EXPORT ${project}-targets ############################################## ## Add test if(TEST) + if(PYBIND) + message(FATAL_ERROR "PYBIND and TEST are enable. But cannot compile with catch_2.\nChoose between pybind and Catch2 for compilation.") + endif() enable_testing() add_subdirectory(unit_tests) endif()