Changeset: e7b9b2c71071 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e7b9b2c71071 Modified Files: cmake/monetdb-custom-targets.cmake Branch: default Log Message:
Only create mtest target if TESTING flag is set. diffs (25 lines): diff --git a/cmake/monetdb-custom-targets.cmake b/cmake/monetdb-custom-targets.cmake --- a/cmake/monetdb-custom-targets.cmake +++ b/cmake/monetdb-custom-targets.cmake @@ -7,13 +7,14 @@ #]] if(WIN32) - add_custom_target(mtest - COMMAND - ${CMAKE_INSTALL_FULL_BINDIR}/monetdb_mtest.bat - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + set (MONETDB_MTEST_SCRIPT "monetdb_mtest.bat") else() + set (MONETDB_MTEST_SCRIPT "monetdb_mtest.sh") +endif() + +if (TESTING) add_custom_target(mtest - COMMAND - ${CMAKE_INSTALL_FULL_BINDIR}/monetdb_mtest.sh - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + COMMAND + ${CMAKE_INSTALL_FULL_BINDIR}/${MONETDB_MTEST_SCRIPT} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) endif() _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list