Changeset 48833d3 in tol for tolbase


Ignore:
Timestamp:
Feb 19, 2016, 11:45:27 AM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
6755180
Parents:
232d1b9
Message:

Refs #1880, #1899
Se incorporan las opciones de compilación de las "ThirdParty" en build.sh.
Se corrige el mecanismo de inclusión de estos paquetes de tcl/Tk en la instalación. El mecanismo anterior basado en lib_children fallaba al no existir aún los directorios en tiempo de cmake.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7239 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/ThirdParty/CMakeLists.txt

    r232d1b9 r48833d3  
    44get_filename_component( TK_LIB_DIR ${TK_LIBRARY} DIRECTORY )
    55
     6if( NOT TCLODBC_VERSION )
     7  set( TCLODBC_VERSION 2.5 )
     8endif( )
     9
    610if( BUILD_TCLODBC )
     11  message( STATUS "Third party tclodbc${TCLODBC_VERSION} will be built." )
    712  find_library( ODBC_LIBRARY
    813    NAMES iodbc unixodbc odbc
    … …  
    1823
    1924  ExternalProject_Add( tclodbc
    20     URL ${CMAKE_CURRENT_SOURCE_DIR}/tclodbc2.5_bayes.tar.gz
     25    URL ${CMAKE_CURRENT_SOURCE_DIR}/tclodbc${TCLODBC_VERSION}_bayes.tar.gz
    2126    PREFIX ${CMAKE_CURRENT_BINARY_DIR}
    2227    CONFIGURE_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/src/tclodbc/configure
    … …  
    2631    --with-odbclibrary=${ODBC_LIB_DIR}
    2732    )
     33  install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib/tclodbc${TCLODBC_VERSION} COMPONENT RUNTIME DESTINATION lib )   
    2834endif( BUILD_TCLODBC )
    2935
     36if( NOT TKTABLE_VERSION )
     37  set( TKTABLE_VERSION 2.10 )
     38endif( )
     39
    3040if( BUILD_TKTABLE )
     41  message( STATUS "Third party Tktable${TKTABLE_VERSION} will be built." )
    3142  ExternalProject_Add( tktable
    32     URL ${CMAKE_CURRENT_SOURCE_DIR}/Tktable2.10.tar.gz
     43    URL ${CMAKE_CURRENT_SOURCE_DIR}/Tktable${TKTABLE_VERSION}.tar.gz
    3344    PREFIX ${CMAKE_CURRENT_BINARY_DIR}
    3445    CONFIGURE_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/src/tktable/configure
    … …  
    3849    --with-tk=${TK_LIB_DIR}
    3950    )
     51  install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib/Tktable${TKTABLE_VERSION} COMPONENT RUNTIME DESTINATION lib )
    4052endif( BUILD_TKTABLE )
    41 
    42 if( BUILD_TCLODBC OR BUILD_TKTABLE )
    43   file( GLOB lib_children
    44     ${CMAKE_CURRENT_BINARY_DIR}/lib/* )
    45  
    46   #message( STATUS "lib_children = ${lib_children}" )
    47  
    48   install( DIRECTORY ${lib_children} COMPONENT RUNTIME DESTINATION lib )
    49 endif( BUILD_TCLODBC OR BUILD_TKTABLE )
Note: See TracChangeset for help on using the changeset viewer.