Commits

Shlomi Fish committed 5592a56

Emit a more descriptive error for no-GMP.

See:

https://github.com/kripken/emscripten/issues/766#issuecomment-11664435

Thanks to kripken.

  • Participants
  • Parent commits 4c77cc9

Comments (0)

Files changed (1)

File fc-solve/source/CMakeLists.txt

 SET (DEBONDT_DELTA_STATES )
 IF (FCS_ENABLE_DBM_SOLVER)
     FIND_LIBRARY(LIBGMP_LIB gmp)
+
+    IF (NOT LIBGMP_LIB)
+        MESSAGE (FATAL_ERROR
+"You must install libgmp ( http://gmplib.org/ ) and its development package to build the DBM solver.
+If you're not interested in building it, run cmake with the -DFCS_ENABLE_DBM_SOLVER= flag."
+        )
+    ENDIF (NOT LIBGMP_LIB)
+
     ADD_DEFINITIONS("-DFCS_DEBONDT_DELTA_STATES=1")
     SET (DEBONDT_DELTA_STATES 1)