From 5a2b31afbe42a8a0c8ec4b374d9f5a9670c1b2e8 Mon Sep 17 00:00:00 2001 From: Lysann Schlegel Date: Thu, 15 Nov 2012 10:58:48 +0100 Subject: [PATCH] os_mac.h is not a source file to compile --- src/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f428ec3..975b58d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,15 +30,17 @@ if(WIN32) list(APPEND SOURCES os_win.c) set(CMAKE_DEBUG_POSTFIX _debug) elseif(APPLE) - set(MAC_SOURCES - os_mac/os_mac.h + set(MAC_OBJC_SOURCES os_mac/os_mac.m os_mac/os_mac_interface.m os_mac/os_mac_find.m) + set(MAC_SOURCES + os_mac/os_mac.h + ${MAC_OBJC_SOURCES}) list(APPEND SOURCES ${MAC_SOURCES}) # make sure we use the gcc for Objective-C files as well so that the # sysroot and deployment target arguments are correctly passed to the compiler - SET_SOURCE_FILES_PROPERTIES(${MAC_SOURCES} PROPERTIES LANGUAGE C) + SET_SOURCE_FILES_PROPERTIES(${MAC_OBJC_SOURCES} PROPERTIES LANGUAGE C) else() list(APPEND SOURCES os_nix.c) endif()