You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::cout << "SIRF_PATH not defined, cannot find data" << std::endl;
return1;
}
(It is also used in the obsolete matlab code, so let's ignore that).
In fact, we should not have to rely on the STIR_INSTALL_PATH env variable either. This should be resolved by making a .h.in file setting something like
After that, examples_data_path() should be rewritten to only use the optional SIRF_DATA_PATH env variable and the new SIRF_INSTALLED_EXAMPLE_DATA_PATH.
Note that the current corresponding doc is not quite accurate. This paragraph should be removed I believe
We still use the
SIRF_PATH
env variable explicitly in 2 places in the C++ tests where we should use examples_data_path() insteadSIRF/src/xSTIR/cSTIR/tests/test3.cpp
Lines 51 to 52 in 5ec1fac
SIRF/src/xSTIR/cSTIR/tests/test5.cpp
Lines 50 to 54 in 5ec1fac
(It is also used in the obsolete matlab code, so let's ignore that).
In fact, we should not have to rely on the
STIR_INSTALL_PATH
env variable either. This should be resolved by making a.h.in
file setting something likewhere the latter is set in CMake, rewriting the following slightly:
SIRF/CMakeLists.txt
Line 205 in 6fc60a4
SIRF/CMakeLists.txt
Lines 228 to 230 in 6fc60a4
After that, examples_data_path() should be rewritten to only use the optional
SIRF_DATA_PATH
env variable and the newSIRF_INSTALLED_EXAMPLE_DATA_PATH
.Note that the current corresponding doc is not quite accurate. This paragraph should be removed I believe
SIRF/examples/README.md
Lines 41 to 43 in 5ec1fac
The text was updated successfully, but these errors were encountered: