From cfc92c64acee88e56e41bf55b890378e62e5bf0e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 4 Jun 2016 14:59:26 -0400 Subject: [PATCH] Worked around the OS X issue for now. Let's go! --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 266ef0fc..69b810d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,6 @@ # 3 june 2016 cmake_minimum_required(VERSION 2.8.11) -# TODOs: -# - Darwin, Unix: static linking temporary target makes PUBLIC properties not propagate - # the docs say we need to set this up prior to project() set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8") @@ -155,6 +152,14 @@ macro(_add_exec _name) if(NOT BUILD_SHARED_LIBS) target_link_libraries(${_name} ${_LIBUI_LIBS}) endif() + + # TODOfor some reason these don't propagate + if(NOT WIN32) + target_include_directories(${_name} + PUBLIC .) + target_compile_options(${_name} + PUBLIC ${_COMMON_CFLAGS}) + endif() endmacro() add_subdirectory("test") add_subdirectory("examples")