From bb4f48570835fa21a08d6cfc23f259f3e6779a15 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 29 Dec 2015 16:50:50 +0000 Subject: [PATCH] Mac OS: add if(APPLE condition to Mac OS-specific target property. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CMake/macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/macros.cmake b/CMake/macros.cmake index 49ec49d21..86b609d15 100644 --- a/CMake/macros.cmake +++ b/CMake/macros.cmake @@ -132,9 +132,9 @@ macro(CREATE_EXAMPLE NAME SOURCES LIBRARIES) endif(NOT ${tname} STREQUAL "demo") set_target_properties(${tname} PROPERTIES RESOURCE ${RESOURCE_PATH}) endif(APPLE AND DEFINED RESOURCE_PATH) - if(${tname} STREQUAL "editor") + if(APPLE AND ${tname} STREQUAL "editor") set_target_properties("editor" PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/ide/Xcode4/plists/editor-Info.plist" ) - endif(${tname} STREQUAL "editor") + endif(APPLE AND ${tname} STREQUAL "editor") target_link_libraries(${tname} ${LIBRARIES})