hedgewars/CMakeLists.txt
changeset 2213 bd51bbf06033
parent 2203 6bd39d75e0dd
child 2219 07f5345ecae7
equal deleted inserted replaced
2212:6b5da1a2765a 2213:bd51bbf06033
   105 
   105 
   106 if (NOT pascal_compiler)
   106 if (NOT pascal_compiler)
   107 	message(FATAL_ERROR "No Pascal compiler found!")
   107 	message(FATAL_ERROR "No Pascal compiler found!")
   108 endif (NOT pascal_compiler)
   108 endif (NOT pascal_compiler)
   109 
   109 
       
   110 #special handling of MSVC compiler (no static linking)
       
   111 if(MSVC)
       
   112 	set(pascal_compiler_flags "-dMSVC" ${pascal_compiler_flags})
       
   113 endif(MSVC)
   110 
   114 
   111 IF(NOT APPLE OR NOT universal_build MATCHES "1")
   115 IF(NOT APPLE OR NOT universal_build MATCHES "1")
   112 #here is the standard command for any system
   116 #here is the standard command for any system
   113 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}"
   117 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}"
   114 		COMMAND "${pascal_compiler}"
   118 		COMMAND "${pascal_compiler}"