Commit ccff5658 authored by Andreas Schuh's avatar Andreas Schuh

#108 Fix temporary directory configuration of negative compilation tests

parent 33fc9997
...@@ -173,6 +173,7 @@ if (BUILD_NC_TESTS) ...@@ -173,6 +173,7 @@ if (BUILD_NC_TESTS)
" Either install Python or set BUILD_NC_TESTS to FALSE and try again.") " Either install Python or set BUILD_NC_TESTS to FALSE and try again.")
endif () endif ()
set (SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/nc") 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) configure_file (gflags_nc.py.in "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/nc.py" @ONLY)
macro (add_gflags_nc_test name) macro (add_gflags_nc_test name)
add_test ( add_test (
......
...@@ -6,7 +6,7 @@ import subprocess ...@@ -6,7 +6,7 @@ import subprocess
import shutil import shutil
CMAKE = '@CMAKE_COMMAND@' CMAKE = '@CMAKE_COMMAND@'
TMPDIR = '@TEMPDIR@' TMPDIR = '@TMPDIR@'
SRCDIR = '@SRCDIR@' SRCDIR = '@SRCDIR@'
GFLAGS_DIR = '@gflags_BINARY_DIR@' GFLAGS_DIR = '@gflags_BINARY_DIR@'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment