OutpostUniverse / OP2Archive

Console Application for examining, creating, and extracting files from Outpost 2 .vol and .clm archives.
https://wiki.outpost2.net/doku.php?id=outpost_2:helper_programs:op2archive
MIT License
1 stars 0 forks source link

Add CMake Project Generation #16

Closed Brett208 closed 6 years ago

Brett208 commented 6 years ago

See comments at https://github.com/OutpostUniverse/OP2Utility/pull/118 for details.

Brett208 commented 6 years ago

include stdc++fs on MSVC causes a linker error. I committed a change that prevents linking to it on MSVC. Now new changes build without problem for both OP2Archive and OP2Utility.

Any reason not to move including stdc++fs to OP2Utility instead of having it in OP2Archive?

-Brett

DanRStevens commented 6 years ago

Good point about moving the library include. It does make much more sense in OP2Utility, and scales better when added there.

I had simply added it to the project that complained with an error message. Due to peculiarities of linking, that only happened when linking the executable, not the library file.

Both projects compile without error on Linux with the update.