Răsfoiți Sursa

cmake: Provide a clear error

- No folder with module_name found
- No CMakeLists.txt file found in said folder
Xenofon Karamanos 1 lună în urmă
părinte
comite
ba693314e4
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/modules/CMakeLists.txt

+ 3 - 1
src/modules/CMakeLists.txt

@@ -126,7 +126,9 @@ function(add_module_group group_name group_modules)
         endif()
 
       else()
-        message(FATAL_ERROR "Module directory ${module_path} does not exist.")
+        message(
+          FATAL_ERROR "Module directory ${module_path} does not exist or CMakeLists.txt is missing."
+        )
       endif()
     endif()
   endforeach()