rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.12k stars 430 forks source link

cannot be built from sources on Windows with clang compiler #303

Open MomoDeve opened 3 years ago

MomoDeve commented 3 years ago

I am building RTTR from sources with CMake. I use Visual Studio with LLVM toolchain (clang compiler). In set_compiler_warnings function you set -Werror & -Wall parameters, which causes clang to produce enormous amount of compiler errors (even without -Wall there are 616 warnings which are treated as errors!). Here is the compile log without -Werror & -Wall: rttr_compile_log.txt. The easiest solution for that is just to turn off warnings in utility.cmake file, but of course the best way is to fix all warnings manually