hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8837 b9a15738711e
parent 8827 f53dfd8e0432
child 8840 e1be48f36b82
equal deleted inserted replaced
8834:edceeafff671 8837:b9a15738711e
   102 endif()
   102 endif()
   103 
   103 
   104 
   104 
   105 #DEPENDECIES AND EXECUTABLES SECTION
   105 #DEPENDECIES AND EXECUTABLES SECTION
   106 if(APPLE)
   106 if(APPLE)
   107     string(REGEX MATCH "[pP][pP][cC]+" powerpc_build "${CMAKE_OSX_ARCHITECTURES}")
   107     if(CMAKE_OSX_ARCHITECTURES)
   108     string(REGEX MATCH "[iI]386+" i386_build "${CMAKE_OSX_ARCHITECTURES}")
   108         #parse this system variable and adjust only the powerpc syntax to be compatible with -P
   109     string(REGEX MATCH "[xX]86_64+" x86_64_build "${CMAKE_OSX_ARCHITECTURES}")
   109         string(REGEX MATCH "[pP][pP][cC]+" powerpc_build "${CMAKE_OSX_ARCHITECTURES}")
   110 
   110         string(REGEX MATCH "[iI]386+" i386_build "${CMAKE_OSX_ARCHITECTURES}")
   111     if(powerpc_build)
   111         string(REGEX MATCH "[xX]86_64+" x86_64_build "${CMAKE_OSX_ARCHITECTURES}")
   112         set(powerpc_build "powerpc")
   112         if(powerpc_build)
       
   113             set(powerpc_build "powerpc")
       
   114         endif()
       
   115     elseif(CMAKE_SIZEOF_VOID_P MATCHES "8")
       
   116         #if that variable is not set check if we are on x86_64 and if so force it, else use default
       
   117         add_flag_append(CMAKE_Pascal_FLAGS -Px86_64)
   113     endif()
   118     endif()
   114 
   119 
   115     #on OSX we need to provide the SDL_main() function when building as executable
   120     #on OSX we need to provide the SDL_main() function when building as executable
   116     if(NOT BUILD_ENGINE_LIBRARY)
   121     if(NOT BUILD_ENGINE_LIBRARY)
   117         add_subdirectory(sdlmain)
   122         add_subdirectory(sdlmain)