Skip to content
Snippets Groups Projects
Commit 1c4f2769 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

SuperBuild: gdal nmake build does not check value of WIN64 var

parent 33b395d0
No related branches found
No related tags found
No related merge requests found
......@@ -89,15 +89,16 @@ if(UNIX)
#set(GDAL_INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install)
else(MSVC)
if("${OTB_MSVC_COMPILER_ARCH}" MATCHES "x86")
set(BUILDING_WIN64 "NO")
else()
set(BUILDING_WIN64 "YES")
endif()
STRING(REGEX REPLACE "/$" "" CMAKE_WIN_INSTALL_PREFIX ${SB_INSTALL_PREFIX})
STRING(REGEX REPLACE "/" "\\\\" CMAKE_WIN_INSTALL_PREFIX ${CMAKE_WIN_INSTALL_PREFIX})
configure_file(${CMAKE_SOURCE_DIR}/patches/GDAL/nmake_gdal_extra.opt.in ${CMAKE_BINARY_DIR}/nmake_gdal_extra.opt)
configure_file(
${CMAKE_SOURCE_DIR}/patches/GDAL/nmake_gdal_extra.opt.in
${CMAKE_BINARY_DIR}/nmake_gdal_extra.opt)
if("${OTB_MSVC_COMPILER_ARCH}" MATCHES "x64")
file(APPEND "${CMAKE_BINARY_DIR}/nmake_gdal_extra.opt" "WIN64=YES")
endif()
set(GDAL_CONFIGURE_COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/configure)
set(GDAL_BUILD_COMMAND nmake
/f ${GDAL_SB_SRC}/makefile.vc
......
......@@ -13,11 +13,6 @@ JPEG_SUPPORTED = 1
GDAL_HOME="@CMAKE_WIN_INSTALL_PREFIX@"
# Uncomment the following if you are building for 64-bit windows
# (x64). You'll need to have PATH, INCLUDE and LIB set up for 64-bit
# compiles.
WIN64=@BUILDING_WIN64@
#if using an external jpeg library uncomment the follwing lines
JPEG_EXTERNAL_LIB = 1
JPEGDIR = @CMAKE_WIN_INSTALL_PREFIX@\include
......@@ -72,7 +67,6 @@ OPENJPEG_CFLAGS = -I@CMAKE_WIN_INSTALL_PREFIX@\include
OPENJPEG_LIB = @CMAKE_WIN_INSTALL_PREFIX@\lib\openjp2.lib
##################################################################
################# TO be enabled for OTB ##########################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment