Closed mattiasljungstrom closed 2 years ago
Thanks! It would probably make more sense to let projects configure this directly, but I don't know yet how much this would break :)
Oooops, something weird in GH Actions after the update. Investigating...
...also happens on my Windows box with VS2019 and cmake 3.22.2
There's a weird "additional option":
Reverting to the last commit fixes the issue, so I'll do that. From looking at your changes I have no idea how that would happen though... hmm.
Ok I have undone the merge commit for now.
Any idea what the problem could be?
Ah, found the problem, note the little "d" here at the end:
ok, right, missed that, assumed that it would be empty if not setup.
although I see the %(AdditionalOptions) even without these changes.
ok, now I understand, the 'd' is the problem, sorry about that!
should I do a new PR or you want to fix it?
Would be nice if you could provide a new PR :)
I think all uses of the FIPS_VS_CRT_FLAGS
variable must be moved up into the "cmake version < 3.15" block.
The /MT /MD flags are not set correctly in CMake 3.15+. Maybe you want to do this in a different place, but this works.
See: https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html#variable:CMAKE_MSVC_RUNTIME_LIBRARY