Try more places for validation data; workaround CMake FindCUDA bug. (#233)
Fixes #232. * Try `NMC_DATADIR` environment variable for validation data path, or else if the #defined `NMC_DATADIR` does not point to a directory, try `./validation/data` and `../validation/data`. * Don't define `NMC_DATADIR` if CMake version 3.7 or 3.8. * Extend C++17 filesystem emulation with (POSIX) implementation of `is_directory` and supporting classes, functions and enums `filesystem_error`, `file_status`, `status(..)`, `file_type` and `perms`.
Showing
- src/util/path.cpp 76 additions, 12 deletionssrc/util/path.cpp
- src/util/path.hpp 392 additions, 241 deletionssrc/util/path.hpp
- tests/unit/CMakeLists.txt 3 additions, 1 deletiontests/unit/CMakeLists.txt
- tests/unit/test_path.cpp 154 additions, 31 deletionstests/unit/test_path.cpp
- tests/validation/CMakeLists.txt 5 additions, 1 deletiontests/validation/CMakeLists.txt
- tests/validation/validate.cpp 7 additions, 1 deletiontests/validation/validate.cpp
- tests/validation/validation_data.cpp 33 additions, 0 deletionstests/validation/validation_data.cpp
- tests/validation/validation_data.hpp 15 additions, 6 deletionstests/validation/validation_data.hpp
Please register or sign in to comment