minor fix: Only use UPLOADARG if it exists

vector-concat
Marius Kintel 2013-12-11 02:01:50 -05:00
parent 379e7a0547
commit d14f0be01c
1 changed files with 3 additions and 1 deletions

View File

@ -908,7 +908,9 @@ set(OPENSCAD_UPLOAD_TESTS $ENV{OPENSCAD_UPLOAD_TESTS})
if (OPENSCAD_UPLOAD_TESTS)
set(UPLOADARG "--upload")
endif()
string(REPLACE __openscad_upload_tests__ ${UPLOADARG} TMP ${TMP})
if (UPLOADARG)
string(REPLACE __openscad_upload_tests__ ${UPLOADARG} TMP ${TMP})
endif()
if (MINGW_CROSS_ENV_DIR)
string(REPLACE __wine__ wine TMP ${TMP})