Commit 133f0569 authored by Antoine Regimbeau's avatar Antoine Regimbeau

Wrong regex in cmake patch

parent 6496e0aa
......@@ -58,7 +58,6 @@ find_program(FILE_COMMAND NAMES "file")
find_program(READLINK NAMES "readlink")
find_program(ZIP_EXECUTABLE NAMES 7z 7za)
#install prefix is same as SUPERBUILD_INSTALL_DIR. could be changed later
if ( NOT CMAKE_INSTALL_PREFIX )
set(CMAKE_INSTALL_PREFIX "${SUPERBUILD_INSTALL_DIR}")
endif()
......
......@@ -22,13 +22,13 @@ include(patch_cmake_files.cmake)
function(install_cmake_files)
patch_cmake_files(NAME "ITK"
VERSION "${PKG_ITK_SB_VERSION}"
MATCH_STRING "${CMAKE_INSTALL_PREFIX}"
MATCH_STRING "${SUPERBUILD_INSTALL_DIR}"
REPLACE_VAR "ITK_INSTALL_PREFIX"
)
patch_cmake_files(NAME "OTB"
VERSION "${PKG_OTB_VERSION_MAJOR}.${PKG_OTB_VERSION_MINOR}"
MATCH_STRING "${CMAKE_INSTALL_PREFIX}"
MATCH_STRING "${SUPERBUILD_INSTALL_DIR}"
REPLACE_VAR "OTB_INSTALL_PREFIX"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment