mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
build: made environment access a separate feature
This commit is contained in:
@@ -99,9 +99,9 @@ namespace
|
||||
auto dump_info = cv::gapi::getCompileArg<cv::graph_dump_path>(args);
|
||||
if (!dump_info.has_value())
|
||||
{
|
||||
const char* path = std::getenv("GRAPH_DUMP_PATH");
|
||||
return path
|
||||
? cv::util::make_optional(std::string(path))
|
||||
const std::string path = cv::utils::getConfigurationParameterString("GRAPH_DUMP_PATH");
|
||||
return !path.empty()
|
||||
? cv::util::make_optional(path)
|
||||
: cv::util::optional<std::string>();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#if !defined(GAPI_STANDALONE)
|
||||
# include <opencv2/core.hpp>
|
||||
# include <opencv2/core/utils/configuration.private.hpp>
|
||||
# include <opencv2/imgproc.hpp>
|
||||
# include <opencv2/gapi/core.hpp>
|
||||
# include <opencv2/gapi/imgproc.hpp>
|
||||
|
||||
Reference in New Issue
Block a user