summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-21 17:26:57 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-21 17:26:57 (GMT)
commita72893da36ce5a78043b333e4bd430df2fdb323d (patch)
tree5f60fceb057e517793cffafe366cebdc65ced1e9 /Tests
parent349ea3f6e6db59a4c1d3a1a8ea6a25e3f55ab713 (diff)
parentb291d9e756b76ce85ebcc314c14de532e8ad477f (diff)
downloadCMake-a72893da36ce5a78043b333e4bd430df2fdb323d.zip
CMake-a72893da36ce5a78043b333e4bd430df2fdb323d.tar.gz
CMake-a72893da36ce5a78043b333e4bd430df2fdb323d.tar.bz2
Merge topic 'vs10-object-items'
b291d9e VS10: Fix external objects generated outside target (#13047) 328c0f6 Simplify cmVisualStudio10TargetGenerator source classification
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExternalOBJ/CMakeLists.txt2
-rw-r--r--Tests/ExternalOBJ/Sub/CMakeLists.txt3
2 files changed, 5 insertions, 0 deletions
diff --git a/Tests/ExternalOBJ/CMakeLists.txt b/Tests/ExternalOBJ/CMakeLists.txt
index f12de11..683e799 100644
--- a/Tests/ExternalOBJ/CMakeLists.txt
+++ b/Tests/ExternalOBJ/CMakeLists.txt
@@ -59,3 +59,5 @@ ADD_EXECUTABLE(ExternalOBJ executable.cxx ${CUSTOM_OBJECT})
# not didn't work. So, repeat the executable using the object
# directly and not from the output of the copy.
ADD_EXECUTABLE(ExternalOBJ2 executable.cxx ${EXTERNAL_OBJECT})
+
+ADD_SUBDIRECTORY(Sub)
diff --git a/Tests/ExternalOBJ/Sub/CMakeLists.txt b/Tests/ExternalOBJ/Sub/CMakeLists.txt
new file mode 100644
index 0000000..35cd30c
--- /dev/null
+++ b/Tests/ExternalOBJ/Sub/CMakeLists.txt
@@ -0,0 +1,3 @@
+set_property(SOURCE ${CUSTOM_OBJECT} PROPERTY GENERATED 1)
+add_executable(ExternalOBJSub ../executable.cxx ${CUSTOM_OBJECT})
+add_dependencies(ExternalOBJSub ExternalOBJ) # depend on generating target