From 65eb0564602ee15b75a154d4e4cb5fc8eae7fc6f Mon Sep 17 00:00:00 2001 From: bgk Date: Wed, 3 Sep 2008 06:45:24 +0000 Subject: [PATCH] SDL : Fix build on OSX, thanks to KunaiTeam git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@685 a31d4220-a93d-0410-bf67-fe4944624d44 --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5b06533..1debf7a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,12 @@ SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts ) INCLUDE(CMakeScripts/CMakeDetermineASMCompiler.cmake) INCLUDE(CMakeScripts/CMakeASMInformation.cmake) +# Fill in SDLMAIN_LIBRARY on OS X manually to avoid using SDLMain.m +# OS X users will have to compile and install SDL form source. +if( APPLE ) + SET(SDLMAIN_LIBRARY "-lSDLmain") +endif( APPLE ) + # The project's name is VBA-M it uses assembly, C and C++ code PROJECT(VBA-M ASM C CXX) @@ -257,7 +263,6 @@ IF( CAN_BUILD_VBAM ) ADD_EXECUTABLE ( vbam WIN32 - MACOSX_BUNDLE ${SRC_SDL} ${SRC_HQ} )