Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 13, 2009, 10:16:19 AM (15 years ago)
Author:
rgrieder
Message:
  • Using REGEX "…" EXCLCUDE in INSTALL avoids a call to FILE(GLOB) (quite slow) at CMake (instead of install) time
  • Excluded audio target again (linker tests were successfull so far)
  • Removed unexplainable code I once inserted in cpptcl.cc, didn't experience the problem anymore (was weird behaviour anyway)
  • Sorting out some library depdencies (just a detail)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/LibraryConfig.cmake

    r2651 r2652  
    6969      # When installing a debug version, we really can't know which libraries
    7070      # are used in released mode because there might be deps of deps.
    71       INSTALL(DIRECTORY ${DEP_BINARY_DIR}/ DESTINATION bin CONFIGURATIONS Debug)
     71      INSTALL(
     72        DIRECTORY ${DEP_BINARY_DIR}/
     73        DESTINATION bin
     74        CONFIGURATIONS Debug
     75        REGEX "^.*\\.pdb$" EXCLUDE
     76      )
    7277
    7378      # Try to filter out all the debug libraries. If the regex doesn't do the
    7479      # job anymore, simply adjust it.
    75       FILE(GLOB _dependencies_all "${DEP_BINARY_DIR}/*")
    76       FOREACH(_dep ${_dependencies_all})
    77         IF(NOT _dep MATCHES "_[Dd]\\.[a-zA-Z0-9+-]+$|-mt-gd-|^.*\\.pdb$")
    78           LIST(APPEND _dependencies_release "${_dep}")
    79         ENDIF()
    80       ENDFOREACH(_dep)
    81       INSTALL(FILES ${_dependencies_release} DESTINATION bin
    82               CONFIGURATIONS Release RelWithDebInfo MinSizeRel)
     80      INSTALL(
     81        DIRECTORY ${DEP_BINARY_DIR}/
     82        DESTINATION bin
     83        CONFIGURATIONS Release RelWithDebInfo MinSizeRel
     84        REGEX "_[Dd]\\.[a-zA-Z0-9+-]+$|-mt-gd-|^.*\\.pdb$" EXCLUDE
     85      )
    8386    ENDIF(DEP_BINARY_DIR AND WIN32)
    8487  ENDIF(NOT DEPENDENCY_DIR)
Note: See TracChangeset for help on using the changeset viewer.