CTest: fix regressions introduced by the ctest-fix-run-serial topic

The first regression resulted in endless looping due to unrun test
dependencies. The second regression prioritized all tests with dependencies
in serial test runs.
KWSys 2013-12-21 (e81f2a9e)

Extract upstream KWSys using the following shell commands.

$ git archive --prefix=upstream-kwsys/ e81f2a9e | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 2426b57d..e81f2a9e
Clinton Stimpson (1):
      e81f2a9e FStream: Fix opening non-existant file.

Change-Id: I1f79e6671de7733d1b8e8a34ce627749c2f666b7
Merge branch 'upstream-kwsys' into update-kwsys
export: Implement EXPORT subcommand (#9822)

Teach the export command to handle export sets defined by invocations
of install(TARGETS ... EXPORT foo).  This makes maintenance of targets
exported to both the build tree and install tree trivial.
Help: cmake-packages: Add missing slash.
Don't copy find_dependency in configure_package_config_file.

There is not really any need to. Downstreams can either rely on it
being provided by CMake, or copy and distribute it.

Change the documented include for the find_dependency macro.
Help: Document export(EXPORT) in the cmake-packages manual.
CPackWiX: transfer file read only flag during installation
CPackWiX: allow and convert UTF-8 sequences in RTF writer
kate: the prev_target is not used by kate

...this was a leftover from experimenting

Alex
kate: support also the build plugin in kate <= 4.12

With this patch, simply also the information used
by the build plugin in kate <= 4.12 is put into the
generated json file. The new build plugin (coming
in 4.13) simply ignores this (and vice versa).

Alex
kate: put full path to cmake into comment

Alex
CMake Nightly Date Stamp
CMake Nightly Date Stamp
CMake Nightly Date Stamp
CMake Nightly Date Stamp
cmake-mode.el: Move header line to the top of file
cmake-mode.el: Add autoload cookies
OS X: Add CMP0042 to enable MACOSX_RPATH by default

Also adding documentation for CMAKE_MACOSX_RPATH, and improving
documentation for MACOSX_RPATH.
Replace <OBJECT_DIR> rule placeholder consistently (#14667)

The <OBJECT_DIR> placeholder is supposed to be the base intermediate
files directory for the current target.  This is how it gets replaced
during link line generation.  However, during compile line generation
we replace it with the directory containing the current object file
which may be a subdirectory.  Fix replacement of <OBJECT_DIR> in the
generated compile lines to be the base intermediate files directory.

This was expoxed by commit 42ba1b08 (VS: Separate compiler and linker
PDB files, 2013-04-05) when we added a "/Fd<OBJECT_DIR>/" flag to the
MSVC compile line in order to match the VS IDE default compiler program
database location in the intermediate files directory.  For source files
in a subdirectory relative to the current target this caused the wrong
location to be used for the compiler program database.  This becomes
particularly important when using precompiled headers.

While at it, use the cmTarget::GetSupportDirectory method to compute the
intermediate files directory for the current target instead of repeating
the logic in a few places.