oatpp / oatpp-swagger

OpenApi 3.0.0 docs + Swagger UI for oatpp services
https://oatpp.io/
Apache License 2.0
90 stars 51 forks source link

Multithreaded runtime builds on Windows /MT[d] #49

Open heindl-solutions opened 2 years ago

heindl-solutions commented 2 years ago

for the main project, there is OATPP_MSVC_LINK_STATIC_RUNTIME:BOOL=ON to switch to /MT build on Windows. This is missing for this subproject

I had to workaround using cmake ... -DCMAKE_POLICY_DEFAULT_CMP0099=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>"

I think OATPP_MSVC_LINK_STATIC_RUNTIME should be added to oatpp-swagger and oatpp-sqlite as well to be consistent.

Thank you very much for the good work!

heindl-solutions commented 2 years ago

seems to be related to "Commits on Jun 11, 2021" in main project (oatpp):

45996bf7fcdb8c1d363b97699d0cf38a875222e3 47b34ef74c3939faf2b0423464dcce2736a9128c 6940d26f2ee10ab7bfb851a2e961bd702b49e393