admin管理员组文章数量:1405191
On my system I have Emacs:
$ which emacs
/usr/bin/emacs
$ emacs --version
GNU Emacs 29.4
I cannot make CMake find it; this is the corresponding bit of CMakeLists.txt file:
find_program(EMACS emacs)
message(STATUS "EMACS=${EMACS}")
if(EMACS_FOUND)
execute_process(COMMAND ${EMACS_EXECUTABLE} ./text --batch -f -latex-export-to-pdf --kill
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE EMACS_RESULT)
if(NOT EMACS_RESULT EQUAL "0")
message(WARNING "Emacs error: ${EMACS_RESULT} - cannot generate documentation.")
endif()
else()
message(WARNING "Emacs not found: cannot generate documentation.")
endif()
This is the output running from the IDE (KDevelop):
-- EMACS=EMACS-NOTFOUND
CMake Warning at CMakeLists.txt:65 (message):
Emacs not found: cannot generate documentation.
This is the output running from the command line (Bash):
-- EMACS=/usr/bin/emacs
CMake Warning at CMakeLists.txt:65 (message):
Emacs not found: cannot generate documentation.
What am I doing wrong?
本文标签: CMake does not find an external executable (Emacs)Stack Overflow
版权声明:本文标题:CMake does not find an external executable (Emacs) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744881560a2630236.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论