diff --git a/CMakeLists.txt b/CMakeLists.txt index 26e05729..4540de0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ project(STA VERSION 2.6.0 ) option(CUDD_DIR "CUDD BDD package directory") -option(USE_TCL_READLINE "Use TCL readliine package" ON) +option(USE_TCL_READLINE "Use TCL readline package" ON) option(USE_SANITIZE "Compile with santize address enabled") # Turn on to debug compiler args. diff --git a/app/Main.cc b/app/Main.cc index 1a15e6c9..596eb222 100644 --- a/app/Main.cc +++ b/app/Main.cc @@ -40,6 +40,7 @@ using sta::evalTclInit; using sta::sourceTclFile; using sta::parseThreadsArg; using sta::tcl_inits; +using sta::is_regular_file; // Swig uses C linkage for init functions. extern "C" { @@ -133,7 +134,7 @@ staTclAppInit(int argc, string init_path = home; init_path += "/"; init_path += init_filename; - if (std::filesystem::is_regular_file(init_path.c_str())) + if (is_regular_file(init_path.c_str())) sourceTclFile(init_path.c_str(), true, true, interp); } }