<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cmake.git/Tests/CustomCommandWorkingDirectory, branch master</title>
<subtitle>gitlab.kitware.com: cmake/cmake.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/'/>
<entry>
<title>Tests: Bump CMake minimum required in tests to 3.5</title>
<updated>2023-03-01T21:36:54+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2023-03-01T20:55:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=f53bd6f45064fdf16c6c562edaf58bdcab8ee061'/>
<id>f53bd6f45064fdf16c6c562edaf58bdcab8ee061</id>
<content type='text'>
CMake 3.27 deprecates compatibility with CMake &lt; 3.5.  Update tests that
do not cover older interfaces to avoid the deprecation warning.

Follow the pattern from:

* commit 7b07ccdd2b (Tests/*Only: Update cmake_minimum_required versions,
                     2020-06-15, v3.19.0-rc1~629^2~1)

* commit 72e7c45e98 (Tests: Bump CMake minimum required in tests to 2.8.12,
                     2020-12-22, v3.20.0-rc1~224^2)

* commit f6b4db365a (Tests: bump cmake_minimum_required version to 2.8.12,
                     2021-04-04, v3.21.0-rc1~372^2)

Also remove explicit `cmake_policy` settings made redundant by the
version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CMake 3.27 deprecates compatibility with CMake &lt; 3.5.  Update tests that
do not cover older interfaces to avoid the deprecation warning.

Follow the pattern from:

* commit 7b07ccdd2b (Tests/*Only: Update cmake_minimum_required versions,
                     2020-06-15, v3.19.0-rc1~629^2~1)

* commit 72e7c45e98 (Tests: Bump CMake minimum required in tests to 2.8.12,
                     2020-12-22, v3.20.0-rc1~224^2)

* commit f6b4db365a (Tests: bump cmake_minimum_required version to 2.8.12,
                     2021-04-04, v3.21.0-rc1~372^2)

Also remove explicit `cmake_policy` settings made redundant by the
version.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: bump cmake_minimum_required version to 2.8.12</title>
<updated>2021-04-05T13:53:07+00:00</updated>
<author>
<name>Rolf Eike Beer</name>
<email>eike@sf-mail.de</email>
</author>
<published>2021-04-04T20:57:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=f6b4db365a5e5723029c06357e81aa6c93ba1f76'/>
<id>f6b4db365a5e5723029c06357e81aa6c93ba1f76</id>
<content type='text'>
This needlessly produces warnings during the test runs that no-one
sees but that are distracting when actually inspecting the logs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This needlessly produces warnings during the test runs that no-one
sees but that are distracting when actually inspecting the logs.
</pre>
</div>
</content>
</entry>
<entry>
<title>add_custom_{command,target}: Fix WORKING_DIRECTORY leading genex</title>
<updated>2018-11-03T12:39:45+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2018-11-02T16:46:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=98d59417b0c6ac3ea85e315133337030dad93496'/>
<id>98d59417b0c6ac3ea85e315133337030dad93496</id>
<content type='text'>
Since commit v3.13.0-rc1~39^2 (add_custom_{command,target}:
WORKING_DIRECTORY generator expressions, 2018-09-22) the
`WORKING_DIRECTORY` option accepts generator expressions.
Fix support for the case of a leading generator expression
by deferring conversion to an absolute path until after
evaluation of the generator expression.

Fixes: #18543
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since commit v3.13.0-rc1~39^2 (add_custom_{command,target}:
WORKING_DIRECTORY generator expressions, 2018-09-22) the
`WORKING_DIRECTORY` option accepts generator expressions.
Fix support for the case of a leading generator expression
by deferring conversion to an absolute path until after
evaluation of the generator expression.

Fixes: #18543
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: Update CustomCommandWorkingDirectory to handle in-source byproducts</title>
<updated>2018-09-28T15:28:36+00:00</updated>
<author>
<name>Pedro Navarro</name>
<email>pnavarro@netflix.com</email>
</author>
<published>2018-09-27T23:57:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=9c2b393cb7750cf182e765f679f9876851aa5055'/>
<id>9c2b393cb7750cf182e765f679f9876851aa5055</id>
<content type='text'>
When running an in-source build the CustomCommandWorkingDirectory test
created a copy of a source file in the same directory it was running on.
This breaks when byproducts are cleaned (e.g. via Ninja) because it
deletes one of the source files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When running an in-source build the CustomCommandWorkingDirectory test
created a copy of a source file in the same directory it was running on.
This breaks when byproducts are cleaned (e.g. via Ninja) because it
deletes one of the source files.
</pre>
</div>
</content>
</entry>
<entry>
<title>add_custom_{command,target}: WORKING_DIRECTORY generator expressions</title>
<updated>2018-09-28T15:15:33+00:00</updated>
<author>
<name>Jon Chronopoulos</name>
<email>patches@crondog.com</email>
</author>
<published>2018-09-22T07:00:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=f158ac19e1e52362b04ff08c309ac3cf8e429bb7'/>
<id>f158ac19e1e52362b04ff08c309ac3cf8e429bb7</id>
<content type='text'>
This teaches add_custom_command and add_custom_target WORKING_DIRECTORY
about generator expressions

Fixes: #14089
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This teaches add_custom_command and add_custom_target WORKING_DIRECTORY
about generator expressions

Fixes: #14089
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: use BYPRODUCTS in the CustomCommandWorkingDirectory test</title>
<updated>2017-04-21T12:57:40+00:00</updated>
<author>
<name>Ben Boeckel</name>
<email>ben.boeckel@kitware.com</email>
</author>
<published>2017-04-18T19:12:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=d96e5d9a19d613de108ab399663f76a8dd964172'/>
<id>d96e5d9a19d613de108ab399663f76a8dd964172</id>
<content type='text'>
This was inadvertently testing the assumed sources behavior in Ninja (no
other test seems to exercise it). There is now a test explicitly testing
it in `RunCMake.Ninja`, so fix this test to work properly regardless of
the assumed sources behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was inadvertently testing the assumed sources behavior in Ninja (no
other test seems to exercise it). There is now a test explicitly testing
it in `RunCMake.Ninja`, so fix this test to work properly regardless of
the assumed sources behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>Convert CMake-language commands to lower case</title>
<updated>2012-08-13T18:19:16+00:00</updated>
<author>
<name>Kitware Robot</name>
<email>kwrobot@kitware.com</email>
</author>
<published>2012-08-13T17:47:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=77543bde41b0e52c3959016698b529835945d62d'/>
<id>77543bde41b0e52c3959016698b529835945d62d</id>
<content type='text'>
Ancient CMake versions required upper-case commands.  Later command
names became case-insensitive.  Now the preferred style is lower-case.

Run the following shell code:

cmake --help-command-list |
grep -v "cmake version" |
while read c; do
    echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done &gt;convert.sed &amp;&amp;
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &amp;&amp;
rm convert.sed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ancient CMake versions required upper-case commands.  Later command
names became case-insensitive.  Now the preferred style is lower-case.

Run the following shell code:

cmake --help-command-list |
grep -v "cmake version" |
while read c; do
    echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done &gt;convert.sed &amp;&amp;
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &amp;&amp;
rm convert.sed
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove trailing whitespace from most CMake and C/C++ code</title>
<updated>2012-08-13T18:18:39+00:00</updated>
<author>
<name>Kitware Robot</name>
<email>kwrobot@kitware.com</email>
</author>
<published>2012-08-13T17:42:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=7bbaa4283de26864b2e55e819db0884771585467'/>
<id>7bbaa4283de26864b2e55e819db0884771585467</id>
<content type='text'>
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace.  Wipe out all remnants of trailing whitespace
everywhere except third-party code.

Run the following shell code:

git ls-files -z -- \
 bootstrap doxygen.config '*.readme' \
 '*.c' '*.cmake' '*.cpp' '*.cxx' \
 '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
 '*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace.  Wipe out all remnants of trailing whitespace
everywhere except third-party code.

Run the following shell code:

git ls-files -z -- \
 bootstrap doxygen.config '*.readme' \
 '*.c' '*.cmake' '*.cpp' '*.cxx' \
 '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
 '*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle relative WORKING_DIRECTORY in add_custom_(command|target)</title>
<updated>2011-01-26T23:02:02+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2011-01-26T21:32:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=88548a45fbd35205469ac9fd332349551e172496'/>
<id>88548a45fbd35205469ac9fd332349551e172496</id>
<content type='text'>
This also fixes handling of trailing slashes in the directory name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also fixes handling of trailing slashes in the directory name.
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle trailing slashes on add_custom_command DEPENDS</title>
<updated>2011-01-26T23:01:33+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2011-01-26T21:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cmake.git/commit/?id=7befc00783ca9739e7585ff4d2b645a762a38396'/>
<id>7befc00783ca9739e7585ff4d2b645a762a38396</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
