hedgewars/CMakeLists.txt
changeset 9961 c18c66d621e5
parent 9959 1a42d36f346a
child 9963 9e75dbffec81
--- a/hedgewars/CMakeLists.txt	Wed Jan 08 19:19:09 2014 +0100
+++ b/hedgewars/CMakeLists.txt	Wed Jan 08 23:29:30 2014 +0100
@@ -106,7 +106,7 @@
 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LIBRARY_OUTPUT_PATH}")
 
 #DEPENDECIES AND EXECUTABLES SECTION
-if(NOT ${BUILD_ENGINE_LIBRARY} AND APPLE)
+if(APPLE AND (NOT BUILD_ENGINE_LIBRARY))
     #on OSX we need to provide the SDL_main() function when building as executable
     add_subdirectory(sdlmain)
     list(APPEND HW_LINK_LIBS SDLmain)