dscharrer / innoextract

A tool to unpack installers created by Inno Setup
https://constexpr.org/innoextract/
Other
1k stars 125 forks source link

Unable to build with Conan 2 and C++17 #171

Open datalogics-robl opened 6 months ago

datalogics-robl commented 6 months ago

I'm encountering a problem building innoextract with Conan 2 using the C++17 profile. I get several compile errors, but the first is telling: it's trying to use auto_ptr which is deprecated in C++17. See:

`C:\Users\robl\.conan2\p\b\innoe2f4ac5d724a25\b\src\src\util/unique_ptr.hpp(41): error C2039: 'auto_ptr': is not a member of 'std' (compiling source file C:\
Users\robl\.conan2\p\b\innoe2f4ac5d724a25\b\src\src\cli\goggalaxy.cpp) [C:\Users\robl\.conan2\p\b\innoe2f4ac5d724a25\b\build\innoextract.vcxproj]
  C:\Users\robl\.conan2\p\b\boost775e32d97d495\p\include\boost/smart_ptr/shared_ptr.hpp(1226): note: see declaration of 'std' (compiling source file C:\User
  s\robl\.conan2\p\b\innoe2f4ac5d724a25\b\src\src\cli\goggalaxy.cpp)
  C:\Users\robl\.conan2\p\b\innoe2f4ac5d724a25\b\src\src\util/unique_ptr.hpp(43): note: see reference to class template instantiation 'util::unique_ptr<T>'
  being compiled (compiling source file C:\Users\robl\.conan2\p\b\innoe2f4ac5d724a25\b\src\src\cli\goggalaxy.cpp)`

I know innoextract can use C++17, I see the flag in the CMakeLists.txt...why would that not be getting picked up?