nholthaus / units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.
http://nholthaus.github.io/units/
MIT License
952 stars 135 forks source link

Error D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING #170

Open GabrielePisciotta opened 6 years ago

GabrielePisciotta commented 6 years ago

I'm trying to compile the library on Windows (MSVS 17) and I get /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING: No such file or directory when I compile it. I think that is related to unitTests\CMakeLists.txt. I included the whole library as a submodule in my project, using add_subdirectory() in the main CMakeLists.txt.

nholthaus commented 6 years ago

version 2.3.1?

It's related to googletest, so there's a good chance that setting the cmake option to disable building the tests will get you through that. If not, I'll patch it.