Commit Graph

21 Commits

Author SHA1 Message Date
Brad King
f53bd6f450 Tests: Bump CMake minimum required in tests to 3.5
CMake 3.27 deprecates compatibility with CMake < 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.
2023-03-01 16:36:54 -05:00
Smit tay
3e03f359a7 UseJava: Add RESOURCES with NAMESPACE to add_jar()
add_jar() currently requires (undocumented) that resources be supplied
as relative paths.  The resources *may* then end up in a path which does
not reflect the original path particularly when performing out-of-source
builds.  This change adds a RESOURCE (and NAMESPACE) parameter and a
function to add the names resources into the named namespace within the
jar- and thus address both of these problems.

Fixes: #22101
2021-05-10 10:48:46 -04:00
Rolf Eike Beer
f6b4db365a Tests: bump cmake_minimum_required version to 2.8.12
This needlessly produces warnings during the test runs that no-one
sees but that are distracting when actually inspecting the logs.
2021-04-05 09:53:07 -04:00
Marc Chevrier
14ac253af7 FindJava: tests clean-up 2019-10-02 14:47:11 +02:00
Marc Chevrier
dead049e0b UseJava: OUTPUT_DIR must exists in all cases.
Fixes: #17316
2017-10-10 10:00:23 +02:00
Matthew Woehlke
d91ec04402 Tests/Java: Clean up style of Java test code 2016-06-07 08:50:35 -04:00
Marc Chevrier
3d287de4ea UseJava: Teach add_jar to support file syntax for sources 2015-08-04 11:19:43 -04:00
Kitware Robot
7bbaa4283d Remove trailing whitespace from most CMake and C/C++ code
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/ \+$//'
2012-08-13 14:18:39 -04:00
Andreas Schneider
c177c8e6b8 Tests: Java tests should test UseJava.cmake 2011-03-29 11:54:42 +02:00
Ken Martin
ce8810c4e7 ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
Brad King
04525424af BUG: For in-source version do not use a custom command output and custom target with the same name. This accidentally worked before but with a circular dependency. 2007-06-27 13:22:45 -04:00
Alexander Neundorf
7f1fbe4e4c STYLE: add some more output, so it is easier to understand
Alex
2007-06-21 14:06:52 -04:00
Bill Hoffman
bff279c615 ENH: create the correct jar name 2006-04-23 23:24:48 -04:00
Bill Hoffman
1198106e3c ENH: use the right name for the test 2006-04-23 15:34:34 -04:00
Bill Hoffman
e5fdf8335c ENH: fix build 2006-04-23 11:10:41 -04:00
Bill Hoffman
b663e221da ENH: fix in source build for vs ide 2006-04-22 09:13:07 -04:00
Bill Hoffman
74b3924edd try and get this java test to work 2004-09-24 16:34:59 -04:00
Bill Hoffman
0a26f8d46c ENH: add some java code to try and find the system path 2004-09-24 15:40:40 -04:00
Bill Hoffman
5360480b5a ENH: remove classpath so that this test passes with older java compilers that clober the system class path with the -classpath option 2004-09-24 11:05:15 -04:00
Bill Hoffman
8691def12a use verbose makefiles 2004-09-22 17:41:04 -04:00
Bill Hoffman
692ba48c4e ENH: major changes to support addition of languages from cmake modules directory. 2004-09-22 14:42:05 -04:00