Add OPJ_BINARY_DIR

This commit is contained in:
mayeut
2015-10-10 17:25:50 +02:00
parent 8d2019ae73
commit f33f50126c
2 changed files with 7 additions and 2 deletions

View File

@@ -7,7 +7,11 @@
cmake_minimum_required(VERSION 2.8)
set( ENV{LANG} en_US.UTF-8)
set( CTEST_DASHBOARD_ROOT "$ENV{PWD}/build" )
if($ENV{OPJ_BINARY_DIR})
set( CTEST_DASHBOARD_ROOT "$ENV{OPJ_BINARY_DIR}" )
else
set( CTEST_DASHBOARD_ROOT "$ENV{PWD}/build" )
endif()
set( CTEST_CMAKE_GENERATOR "Unix Makefiles") # Always makefile in travis-ci environment
if ("$ENV{OPJ_BUILD_CONFIGURATION}" STREQUAL "")