summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2015-07-14 00:53:34 +0200
committerTony Wasserka <neobrainx@gmail.com>2015-07-14 00:53:34 +0200
commitecdfd0643a02ab9855f5674fee7475a7c15a0085 (patch)
tree51c4cf8dafb98f53b78a821ffd2522f4ee942eda
parentMerge pull request #924 from aroulin/qt-disassembly-step (diff)
parentgetopt: Fix macro redefinition warning (diff)
downloadyuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.tar
yuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.tar.gz
yuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.tar.bz2
yuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.tar.lz
yuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.tar.xz
yuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.tar.zst
yuzu-ecdfd0643a02ab9855f5674fee7475a7c15a0085.zip
-rw-r--r--externals/getopt/CMakeLists.txt4
-rw-r--r--externals/getopt/getopt.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/externals/getopt/CMakeLists.txt b/externals/getopt/CMakeLists.txt
index b4709a506..c8b745d55 100644
--- a/externals/getopt/CMakeLists.txt
+++ b/externals/getopt/CMakeLists.txt
@@ -7,5 +7,5 @@ set(HEADERS
create_directory_groups(${SRCS} ${HEADERS})
add_library(getopt ${SRCS} ${HEADERS})
-target_compile_definitions(getopt INTERFACE STATIC_GETOPT)
-target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
+target_compile_definitions(getopt PUBLIC STATIC_GETOPT)
+target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/externals/getopt/getopt.c b/externals/getopt/getopt.c
index faf84089f..948d42683 100644
--- a/externals/getopt/getopt.c
+++ b/externals/getopt/getopt.c
@@ -35,7 +35,6 @@ PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON
YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, EVEN If WE ARE
EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#ifdef _MSC_VER