Closed williampma closed 9 years ago
Installing cabal followed by removing CMakeCache.txt and doing make clean before make worked for me.
I figured out that FindCabal.cmake isn't really working properly. It thinks cabal
is found when it is not.
Changing the EXECUTE_PROCESS
part to
EXECUTE_PROCESS(
COMMAND cabal list
RESULT_VARIABLE res
OUTPUT_QUIET
ERROR_VARIABLE out
)
MESSAGE(STATUS "res: ${res}")
output res: No such file or directory
. Not sure why FIND_PROGRAM found an non-existence cabal yet.
OK, CABAL_EXECUTABLE
is defined, and it seems to be storing the string "CABAL_EXECUTABLE-NOTFOUND"... weird... CABAL_EXECUTABLE-NOTFOUND
as a variable is not defined...
This is not how "find_program()" is described to work on the cmake doc... or it just words it badly. Does this mean all current usages of "find_program()" are wrong...?
Do I need to install cabal?