-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From d3ea7a06200023159f122582b60c5d2139be26d9 Mon Sep 17 00:00:00 2001 | ||
From: Alwin Esch <alwin.esch@web.de> | ||
Date: Sat, 28 Mar 2020 22:25:32 +0100 | ||
Subject: [PATCH] prevent error C4996 | ||
|
||
--- | ||
CMakeLists.txt | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 5e603c2..7a09f5d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -42,6 +42,11 @@ macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source buil | ||
# Copy library files to a lib sub-directory | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") | ||
|
||
+# Prevent "error C4996: ..." on windows builds | ||
+if (WIN32) | ||
+ add_compile_options(/wd4996) | ||
+endif() | ||
+ | ||
# search for libraries | ||
if (WITH_ZLIB) | ||
find_package(ZLIB REQUIRED) | ||
-- | ||
2.20.1 | ||
|