[trunk] Fix find_path behavior within cross-compilation execution

This commit is contained in:
Mathieu Malaterre 2014-02-28 08:28:25 +00:00
parent a347262468
commit 65503dad73
1 changed files with 2 additions and 3 deletions

View File

@ -281,9 +281,8 @@ if(BUILD_TESTING)
# They could be found via svn on the OpenJPEG google code project # They could be found via svn on the OpenJPEG google code project
# svn checkout http://openjpeg.googlecode.com/svn/data (about 70 Mo) # svn checkout http://openjpeg.googlecode.com/svn/data (about 70 Mo)
find_path(OPJ_DATA_ROOT README-OPJ-Data find_path(OPJ_DATA_ROOT README-OPJ-Data
PATHS PATHS $ENV{OPJ_DATA_ROOT} ${CMAKE_SOURCE_DIR}/../data
$ENV{OPJ_DATA_ROOT} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
${CMAKE_SOURCE_DIR}/../data
) )
# Add repository where to find tests # Add repository where to find tests