提交 a10f7bc2 编写于 作者: J Julien Schueller

CMake: Set OCTAVE_INCLUDE_DIRS conditionally

Closes #314
上级 5e2d81cb
......@@ -146,7 +146,9 @@ find_path (OCTAVE_INCLUDE_DIR
PATHS "${OCTAVE_INCLUDE_PATHS}/.."
)
set (OCTAVE_INCLUDE_DIRS ${OCTAVE_INCLUDE_DIR} ${OCTAVE_INCLUDE_DIR}/octave)
if (OCTAVE_INCLUDE_DIR)
set (OCTAVE_INCLUDE_DIRS ${OCTAVE_INCLUDE_DIR} ${OCTAVE_INCLUDE_DIR}/octave)
endif ()
macro (octave_add_oct FUNCTIONNAME)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册