Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
8d2db8d8
Commit
8d2db8d8
authored
Apr 15, 2016
by
Rashad Kanavath
Browse files
SuperBuild: switch to autoconf on ox. issue with cmake
parent
cd9b6431
Changes
1
Hide whitespace changes
Inline
Side-by-side
SuperBuild/CMake/External_geotiff.cmake
View file @
8d2db8d8
...
...
@@ -21,25 +21,56 @@ else()
ADD_SUPERBUILD_CMAKE_VAR
(
GEOTIFF JPEG_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
GEOTIFF JPEG_LIBRARY
)
ExternalProject_Add
(
GEOTIFF
PREFIX GEOTIFF
URL
"http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.1.tar.gz"
URL_MD5 48bdf817e6e7a37671cc1f41b01e10fc
SOURCE_DIR
${
GEOTIFF_SB_SRC
}
BINARY_DIR
${
GEOTIFF_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
DEPENDS
${
GEOTIFF_DEPENDENCIES
}
CMAKE_CACHE_ARGS
-DCMAKE_INSTALL_PREFIX:STRING=
${
SB_INSTALL_PREFIX
}
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
${
GEOTIFF_SB_CONFIG
}
CMAKE_COMMAND
${
SB_CMAKE_COMMAND
}
)
SUPERBUILD_PATCH_SOURCE
(
GEOTIFF
"remove-install-name-dir"
)
#RK: we are forced to use autoconf on osx due to cmake's find_* functions
#Do we need to use the same of Linux ?
if
(
APPLE
)
set
(
GEOTIFF_SB_CONFIG
)
ADD_SUPERBUILD_CONFIGURE_VAR
(
GEOTIFF PROJ_ROOT --with-proj
)
ADD_SUPERBUILD_CONFIGURE_VAR
(
GEOTIFF TIFF_ROOT --with-libtiff
)
ADD_SUPERBUILD_CONFIGURE_VAR
(
GEOTIFF JPEG_ROOT --with-jpeg
)
ADD_SUPERBUILD_CONFIGURE_VAR
(
GEOTIFF ZLIB_ROOT --with-libz
)
ExternalProject_Add
(
GEOTIFF
PREFIX GEOTIFF
URL
"http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.1.tar.gz"
URL_MD5 48bdf817e6e7a37671cc1f41b01e10fc
SOURCE_DIR
${
GEOTIFF_SB_SRC
}
BINARY_DIR
${
GEOTIFF_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
DEPENDS
${
GEOTIFF_DEPENDENCIES
}
CONFIGURE_COMMAND
${
SB_ENV_CONFIGURE_CMD
}
${
GEOTIFF_SB_SRC
}
/configure
--prefix=
${
SB_INSTALL_PREFIX
}
--enable-static=no
${
GEOTIFF_SB_CONFIG
}
BUILD_COMMAND $
(
MAKE
)
INSTALL_COMMAND $
(
MAKE
)
install
)
SUPERBUILD_PATCH_SOURCE
(
GEOTIFF
"patch-configure-script"
)
else
()
ExternalProject_Add
(
GEOTIFF
PREFIX GEOTIFF
URL
"http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.1.tar.gz"
URL_MD5 48bdf817e6e7a37671cc1f41b01e10fc
SOURCE_DIR
${
GEOTIFF_SB_SRC
}
BINARY_DIR
${
GEOTIFF_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
DEPENDS
${
GEOTIFF_DEPENDENCIES
}
CMAKE_CACHE_ARGS
-DCMAKE_INSTALL_PREFIX:STRING=
${
SB_INSTALL_PREFIX
}
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
-DPROJ4_OSGEO4W_HOME:PATH=
${
SB_INSTALL_PREFIX
}
${
GEOTIFF_SB_CONFIG
}
CMAKE_COMMAND
${
SB_CMAKE_COMMAND
}
)
endif
()
set
(
_SB_GEOTIFF_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
if
(
WIN32
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment