diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-10-10 18:15:28 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-10-10 18:15:28 +0200 |
| commit | cc9bf1d5576a5180591fc11ffd3c37d20d08f4c2 (patch) | |
| tree | 225ef01beac5e0a2abd5ec73d133b67f1fb272fc /tools/ctest_scripts | |
| parent | a01f7cdee0a4c93fa5ccae7cb03dba7a1d5065ee (diff) | |
Use make under windows
Diffstat (limited to 'tools/ctest_scripts')
| -rw-r--r-- | tools/ctest_scripts/travis-ci.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ctest_scripts/travis-ci.cmake b/tools/ctest_scripts/travis-ci.cmake index a95b5a00..46aec09d 100644 --- a/tools/ctest_scripts/travis-ci.cmake +++ b/tools/ctest_scripts/travis-ci.cmake @@ -12,7 +12,13 @@ if($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{TRAVIS_OS_NAME}" STREQUAL "windows") + set( CTEST_CMAKE_GENERATOR "NMake Makefiles") + SET( CTEST_BUILD_COMMAND "nmake" ) +else() + set( CTEST_CMAKE_GENERATOR "Unix Makefiles") # Always makefile in travis-ci environment +endif() if ("$ENV{OPJ_BUILD_CONFIGURATION}" STREQUAL "") set( CTEST_BUILD_CONFIGURATION "Release") |
