summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-03 22:31:24 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-09 12:26:45 (GMT)
commit8b3b88abd82a36daf541dfa7094f978e0be08efc (patch)
tree4c01eae814cbb0e19a6219927877f9de10065f2c /Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake
parentb3d8f5dab7f33dba4f327ab7ef4bd7ea90d6b651 (diff)
downloadCMake-8b3b88abd82a36daf541dfa7094f978e0be08efc.zip
CMake-8b3b88abd82a36daf541dfa7094f978e0be08efc.tar.gz
CMake-8b3b88abd82a36daf541dfa7094f978e0be08efc.tar.bz2
GenEx: Validate target and property names.
They must be non-empty, and match a restrictive regexp.
Diffstat (limited to 'Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake')
-rw-r--r--Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake b/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake
new file mode 100644
index 0000000..6e4c1d0
--- /dev/null
+++ b/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadInvalidName2.cmake
@@ -0,0 +1,7 @@
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
+ "int main(int, char **) { return 0; }\n")
+
+add_executable(TargetPropertyGeneratorExpressions
+ "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
+include_directories("$<TARGET_PROPERTY:Invali/dTarget,Invali/dProperty>")