@@ -58,7 +58,6 @@ file(TO_NATIVE_PATH ${INSTALL_LOG} _INSTALL_LOG_NATIVE)
string(REPLACE "\\" "\\\\" INSTALL_LOG_NATIVE ${_INSTALL_LOG_NATIVE}) # 转义
unset(_INSTALL_LOG_NATIVE)
-include(info)
include(filename)
# CMake对象属性的初始化值的相关设定
@@ -159,4 +158,6 @@ set(_build_test ${BUILD_TEST})
if (_build_test)
enable_testing()
endif()
-add_subdirectory(test) # test的相关内容仍会被构建
+add_subdirectory(test) # test的相关内容仍会被构建
+
+include(info)
@@ -159,7 +159,7 @@ static int mainRun(ff_FFlags *ff) {
int exit_code = 0;
char **argv = NULL;
int argc = ff_get_process_argv(&argv, ff);
- if (argv == 0) {
+ if (argc == 0) {
writeErrorLog(aFunlangLogger, log_default, "There are not file to run.");
return 1;
}