Commit Graph

29 Commits

Author SHA1 Message Date
Rolf Eike Beer 8ebf74b02f Find* (and some other): use ${CMAKE_CURRENT_LIST_DIR} in include()
This solves a lots of warnings, e.g. in the FindModulesExecuteAll test. If the
installed version on the system is rather old this may even lead to bugs, e.g.
https://bugs.gentoo.org/show_bug.cgi?id=436540
2012-11-04 05:55:37 +01:00
Kitware Robot 9db3116226 Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block.  This is no longer the preferred style.

Run the following shell code:

for c in else endif endforeach endfunction endmacro endwhile; do
    echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Kitware Robot 77543bde41 Convert CMake-language commands to lower case
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 >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -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
Rolf Eike Beer 6c8722fab5 Fix typo direcotry -> directory (and similar) [#13444] 2012-07-30 08:08:33 +02:00
Todd Gamblin 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 2010-08-09 08:48:31 -04:00
Brad King c4bb9c9d42 Convert CMake find-modules to BSD License
This adds copyright/license notification blocks CMake's find-modules.
Many of the modules had no notices at all.  Some had notices referring
to the BSD license already.  This commit normalizes existing notices and
adds missing notices.
2009-09-28 11:45:50 -04:00
Bill Hoffman 5b2b40d34b BUG: fix potential issue with empty strings 2009-02-03 08:38:34 -05:00
Alexander Neundorf db4bebe5c8 BUG: fix #7447, FindModulesExecuteAll test fails if both Qt3 and KDE4 can be
found in the system

Qt3 and Qt4 cannot be used together in one project.
Now Qt3/KDE3 and Qt4/KDE4 handle the case that this is done nevertheless
properly, i.e. they fail with FATAL_ERROR if it was REQUIRED and they fail
with just MESSAGE(STATUS ...) and RETURN() if it was not REQUIRED

BUG: make FindQt4 error out with FATAL_ERROR also if it was searched QUIET

Alex
2008-08-16 19:11:53 -04:00
Alexander Neundorf c2348da286 BUG: fix #7452, bad closing ENDIF() statement
Alex
2008-08-05 16:06:14 -04:00
Alexander Neundorf ef71462e3e BUG: modify the compiler flags only if KDE3 has actually been found
Alex
2008-06-18 19:02:20 -04:00
Alexander Neundorf 8fc2142364 STYLE: use uppercase to be consistent with the rest of the file
Alex
2008-06-18 18:57:21 -04:00
Alexander Neundorf 24e584f7a8 BUG: the variable is _KDE4_USE_FLAGS
ENH: I guess this is also true for gcc 2.95 ?

Alex
2008-06-18 16:39:46 -04:00
Bill Hoffman 14f65b3efb ENH: use correct variable 2008-06-18 12:23:50 -04:00
Bill Hoffman a2e5cb25e7 ENH: fix for findall 2008-06-18 09:22:04 -04:00
Bill Hoffman 7a977df566 ENH: try to module run test 2008-06-18 08:42:51 -04:00
Bill Hoffman 858b221c32 ENH: try to module run test 2008-06-18 08:37:32 -04:00
Bill Hoffman d07a4675d2 ENH: fix find module stuff for test 2008-06-16 15:19:44 -04:00
Brad King e2ec3b671b ENH: Cleanup Find* modules with new HINTS feature
- The find_* commands now provide a HINTS option.
  - The option specifies paths to be preferred over the system paths.
  - Many Find* modules were using two find calls with NO_DEFAULT_PATH
    to approximate the behavior, but that blocked users from overriding
    things with CMAKE_PREFIX_PATH.
  - This commit uses the HINTS feature to get desired behavior in
    only one find command call.
2008-06-09 16:04:06 -04:00
Alexander Neundorf 7eb86d1e3c ENH: don't hardcode the /lib/kde3/ directory for the libtool files, but make
it adjustable and detect if libkdecore.so is a 64bit library

Alex
2007-07-17 08:41:20 -04:00
Alexander Neundorf 2ab03bd4f0 BUG: remove KDE3_ENABLE_FINAL (#4140): it doesn't work currently and I
don't have the time to fix this since it would require bigger changes. Maybe
I'll do this if the KDE3 support of CMake becomes more widely used.

Alex
2007-02-20 16:02:51 -05:00
Alexander Neundorf 0945aecc94 BUG: fix #3955: add -O2 by default but only if no special buildtype is set
Alex
2006-10-23 19:04:52 -04:00
Alexander Neundorf 0634447892 STYLE: remove unnecessary /usr/local/include search path
Alex
2006-08-27 15:34:24 -04:00
Alexander Neundorf b81a8e5855 BUG: fix comment (#3511)
Alex
2006-08-27 11:14:19 -04:00
Alexander Neundorf 4af20a2e0a ENH: #3225: first check the special paths, the the default path, also for
searching kde-config

Alex
2006-08-27 09:34:42 -04:00
Brad King 1a7172acdf BUG: Fix usage of FIND_PROGRAM command. 2006-08-01 14:10:05 -04:00
Alexander Neundorf 6690a252ab BUG: put the path to the kde3 lib dir in KDE3_LIB_DIR, not the complete
libkdecore.so

Alex
2006-03-21 12:56:01 -05:00
Alexander Neundorf 263de48025 STYLE: fix typos
Alex
2006-03-18 12:16:20 -05:00
Alexander Neundorf d253baab99 ENH: add real-world-tested and used KDE3 support, and obsolete FindKDE.cmake, which wasn't used by anybody that I heard of
Alex
2006-03-09 14:10:59 -05:00