]> granicus.if.org Git - libmatroska/commitdiff
apply _CRT_SECURE_NO_WARNINGS on all Windows targets
authorSteve Lhomme <slhomme@matroska.org>
Sun, 16 Oct 2022 08:22:41 +0000 (10:22 +0200)
committerSteve Lhomme <slhomme@matroska.org>
Sun, 16 Oct 2022 08:25:06 +0000 (10:25 +0200)
That includes clang-cl. It will have no downside effect on mingw64 builds.

CMakeLists.txt

index 616425e53e2ad54749226b056c35a0c92efe06f7..a76e9a4a6f516499dda4d95e012040128ec3d3c8 100644 (file)
@@ -73,7 +73,7 @@ target_include_directories(matroska
        PUBLIC
     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
     $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
-if(MSVC)
+if(WIN32)
   target_compile_definitions(matroska PRIVATE _CRT_SECURE_NO_WARNINGS)
 endif()