From: Mathieu Malaterre Date: Fri, 28 Feb 2014 08:28:25 +0000 (+0000) Subject: [trunk] Fix find_path behavior within cross-compilation execution X-Git-Tag: version.2.0.1~4^2~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65503dad73ca98890aaf5c08432ace46265dddf3;p=openjpeg [trunk] Fix find_path behavior within cross-compilation execution --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 72f985f6..7d0abd01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,9 +281,8 @@ if(BUILD_TESTING) # They could be found via svn on the OpenJPEG google code project # svn checkout http://openjpeg.googlecode.com/svn/data (about 70 Mo) find_path(OPJ_DATA_ROOT README-OPJ-Data - PATHS - $ENV{OPJ_DATA_ROOT} - ${CMAKE_SOURCE_DIR}/../data + PATHS $ENV{OPJ_DATA_ROOT} ${CMAKE_SOURCE_DIR}/../data + NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH ) # Add repository where to find tests