From 1bf030f4af76f76d52b59f81572edd8e064a5284 Mon Sep 17 00:00:00 2001
From: Yuri Kunde Schlesner <yuriks@yuriks.net>
Date: Mon, 13 Jul 2015 19:46:11 -0300
Subject: [PATCH] getopt: Fix compilation settings

INTERFACE doesn't define the symbol when compiling the library itself.
PUBLIC should be used when the definition is needed both by the library
and by the users.
---
 externals/getopt/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/externals/getopt/CMakeLists.txt b/externals/getopt/CMakeLists.txt
index b4709a506a..c8b745d555 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})