#108 Fix temporary directory configuration of negative compilation tests
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Tue, 24 Mar 2015 23:44:34 +0000 (23:44 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Tue, 24 Mar 2015 23:44:34 +0000 (23:44 +0000)
test/CMakeLists.txt
test/gflags_nc.py.in

index af5ca3c..891224d 100644 (file)
@@ -173,6 +173,7 @@ if (BUILD_NC_TESTS)
                          " Either install Python or set BUILD_NC_TESTS to FALSE and try again.")
   endif ()
   set (SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/nc")
+  set (TMPDIR "${gflags_BINARY_DIR}/Testing/Temporary")
   configure_file (gflags_nc.py.in "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nc.py" @ONLY)
   macro (add_gflags_nc_test name)
     add_test (
index 7636782..9c6054c 100644 (file)
@@ -6,7 +6,7 @@ import subprocess
 import shutil
 
 CMAKE      = '@CMAKE_COMMAND@'
-TMPDIR     = '@TEMPDIR@'
+TMPDIR     = '@TMPDIR@'
 SRCDIR     = '@SRCDIR@'
 GFLAGS_DIR = '@gflags_BINARY_DIR@'