devel
|
Last change
on this file was
48833d3,
checked in by Pedro Gea <pgea@…>, 11 years ago
|
|
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
|
-
Property mode set to
100644
|
|
File size:
848 bytes
|
| Line | |
|---|
| 1 | include(ExternalProject) |
|---|
| 2 | |
|---|
| 3 | get_filename_component( TCL_LIB_DIR ${TCL_LIBRARY} DIRECTORY ) |
|---|
| 4 | get_filename_component( TK_LIB_DIR ${TK_LIBRARY} DIRECTORY ) |
|---|
| 5 | |
|---|
| 6 | if( NOT TCLCURL_VERSION ) |
|---|
| 7 | set( TCLCURL_VERSION 7.22.0 ) |
|---|
| 8 | endif( ) |
|---|
| 9 | |
|---|
| 10 | if( BUILD_TCLCURL ) |
|---|
| 11 | message( STATUS "Third party TclCurl${TCLCURL_VERSION} will be built." ) |
|---|
| 12 | set( tclcurl_tgz "TclCurl-${TCLCURL_VERSION}.tar.gz" ) |
|---|
| 13 | ExternalProject_Add( tclcurl |
|---|
| 14 | URL ${CMAKE_CURRENT_SOURCE_DIR}/${tclcurl_tgz} |
|---|
| 15 | PREFIX ${CMAKE_CURRENT_BINARY_DIR} |
|---|
| 16 | CONFIGURE_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/src/tclcurl/configure |
|---|
| 17 | --prefix=${CMAKE_CURRENT_BINARY_DIR} |
|---|
| 18 | --exec-prefix=${CMAKE_CURRENT_BINARY_DIR} |
|---|
| 19 | --with-tcl=${TCL_LIB_DIR} |
|---|
| 20 | BUILD_IN_SOURCE 1 |
|---|
| 21 | ) |
|---|
| 22 | install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib/TclCurl${TCLCURL_VERSION} COMPONENT RUNTIME DESTINATION lib ) |
|---|
| 23 | endif( BUILD_TCLCURL ) |
|---|
| 24 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.