summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-22 14:41:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-22 14:41:23 (GMT)
commitbcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b (patch)
tree9945bdac4f46768194c0bee87863a1f50fd568a7 /Tests
parentad2ed96a85ff2548222093723b923305732a79cb (diff)
parentab3b549ee0dcd79607f8347a9b69c9b029590fbd (diff)
downloadCMake-bcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b.zip
CMake-bcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b.tar.gz
CMake-bcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b.tar.bz2
Merge topic 'crosscompiling_emulator-fix'
ab3b549ee0 CROSSCOMPILING_EMULATOR: Fix test generation for empty value Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2834
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CrosscompilingEmulator/CrosscompilingEmulatorProperty.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CrosscompilingEmulator/CrosscompilingEmulatorProperty.cmake b/Tests/RunCMake/CrosscompilingEmulator/CrosscompilingEmulatorProperty.cmake
index 1aeb510..2fdefc4 100644
--- a/Tests/RunCMake/CrosscompilingEmulator/CrosscompilingEmulatorProperty.cmake
+++ b/Tests/RunCMake/CrosscompilingEmulator/CrosscompilingEmulatorProperty.cmake
@@ -26,3 +26,9 @@ get_property(emulator TARGET target_without_emulator
if(NOT "${emulator}" STREQUAL "")
message(SEND_ERROR "Default CROSSCOMPILING_EMULATOR property not set to null")
endif()
+
+add_executable(target_with_empty_emulator simple_src_exiterror.cxx)
+set_property(TARGET target_with_empty_emulator PROPERTY CROSSCOMPILING_EMULATOR "")
+
+enable_testing()
+add_test(NAME test_target_with_empty_emulator COMMAND target_with_empty_emulator)