Ticket #23556: patch-file-extension.diff

File patch-file-extension.diff, 1.8 KB (added by pepijndevos@…, 15 years ago)
  • AI/Interfaces/C/CMakeLists.txt

     
    4646
    4747                # Compile the library
    4848                add_library(${myTarget} MODULE ${mySources} ${additionalSources})
     49                FixLibName(${myTarget})
     50
    4951                target_link_libraries(${myTarget} ${additionalLibraries})
    5052                set_target_properties(${myTarget} PROPERTIES COMPILE_FLAGS "${additionalCompileFlags}")
    5153                set_target_properties(${myTarget} PROPERTIES OUTPUT_NAME   "SkirmishAI")
     
    99101
    100102        aux_source_directory(${mySourceDir} mySources)
    101103        add_library(${myTarget} MODULE ${mySources} ${ai_common_SRC} ${CUtils_SRC})
     104        FixLibName(${myTarget})
     105
    102106        set_target_properties(${myTarget} PROPERTIES OUTPUT_NAME "AIInterface")
    103107
    104108        # Install the data files
  • AI/Interfaces/Java/CMakeLists.txt

     
    327327        endif (MINGW)
    328328        include_directories(BEFORE ${rts}/lib/streflop)
    329329        add_library(${myTarget} MODULE ${myNativeSources} ${ai_common_SRC} ${CUtils_SRC})
     330        FixLibName(${myTarget})
    330331        target_link_libraries(${myTarget} streflop)
    331332        set_target_properties(${myTarget} PROPERTIES COMPILE_FLAGS "-DUSING_STREFLOP")
    332333        set_target_properties(${myTarget} PROPERTIES OUTPUT_NAME   "AIInterface")
  • CMakeLists.txt

     
    22cmake_minimum_required(VERSION 2.6)
    33project(Spring)
    44
     5# This is needed, as CMake, or at least soem versions of it (eg. 2.8),
     6# falsely use the ".so" suffix unde Mac OS X for MODULE's
     7macro    (FixLibName targetName)
     8        IF    (UNIX)
     9                SET_TARGET_PROPERTIES(${targetName} PROPERTIES PREFIX "lib")
     10                IF    (APPLE)
     11                        SET_TARGET_PROPERTIES(${targetName} PROPERTIES SUFFIX ".dylib")
     12                ENDIF (APPLE)
     13        ENDIF (UNIX)
     14endmacro (FixLibName targetName)
     15
    516LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/rts/build/cmake")
    617
    718### Install path (relative to CMAKE_INSTALL_PREFIX)