godot-cpp/cmake
Samuel Nicholas 18a926e836 CMake: Fix for #1699 msvc runtime selection issues
Previously I eschewed the use of CMAKE_MSVC_RUNTIME_LIBRARY in favour of setting the flags using target_compile_options so that they would propagate to consumers.

However, it has been raised that a dependency( independent to godot-cpp ) that doesn't set any runtime flags, which relies purely on the CMAKE_MSVC_RUNTIME_LIBRARY variable will very likely not have the correct msvc runtime flags set.

Where MSVC documentation states "All modules passed to a given invocation of the linker must have been compiled with the same runtime library compiler option (/MD, /MT, /LD)."

It was also mentioned that message type WARNING is not ideal for notifying consumers.

So I have updated the cmake code to use CMAKE_MSVC_RUNTIME_LIBRARY  over target-compile_options. And set it as a CACHE STRING variable so that it can be overridden if desired. We still message consumers, but as a NOTICE.
2025-02-15 18:28:12 +10:30
..
android.cmake Alleviate CMake target name clashes, visibility, and grouping. 2024-12-29 09:54:55 +10:30
common_compiler_flags.cmake CMake: Implement 'threads' Option 2025-02-04 09:08:35 +10:30
emsdkHack.cmake Modernise Existing CMakeLists.txt 2024-11-21 11:01:00 +10:30
godotcpp.cmake CMake: Implement 'threads' Option 2025-02-04 09:08:35 +10:30
ios.cmake Alleviate CMake target name clashes, visibility, and grouping. 2024-12-29 09:54:55 +10:30
linux.cmake Alleviate CMake target name clashes, visibility, and grouping. 2024-12-29 09:54:55 +10:30
macos.cmake Alleviate CMake target name clashes, visibility, and grouping. 2024-12-29 09:54:55 +10:30
python_callouts.cmake CMake: Support for XML documentation 2025-01-13 08:28:42 +10:30
web.cmake CMake: Implement 'threads' Option 2025-02-04 09:08:35 +10:30
windows.cmake CMake: Fix for #1699 msvc runtime selection issues 2025-02-15 18:28:12 +10:30