Commit Graph

21 Commits

Author SHA1 Message Date
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
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
Brad King
749584509e Fix CXX/Fortran MODULE flags when enabled before C (#12929)
If CXX or Fortran is enabled before C then the values of

  CMAKE_SHARED_MODULE_C_FLAGS
  CMAKE_SHARED_MODULE_CREATE_C_FLAGS

may not be available.  On platforms where MODULE library (plugin) creation
is the same as SHARED library creation initialize the MODULE creation
flags from the SHARED creation flags of the matching language instead of
assuming that C has been enabled first.

Teach the COnly and CxxOnly tests to build MODULE libraries.  The latter
covers this specific case.
2012-02-03 15:45:13 -05:00
Ken Martin
ce8810c4e7 ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
Bill Hoffman
b57b1c563d BUG: fix for bug 6172 add get source file prop LANGUAGE 2007-12-18 09:57:41 -05:00
Bill Hoffman
5fb34f101a ENH: change to libs that are not real 2007-12-06 22:38:29 -05:00
Bill Hoffman
246e964180 BUG: fix for bug 5455, handle nodefaultlib with more than one lib 2007-12-06 08:40:18 -05:00
Ken Martin
2208231aac ENH: some more CMakeList cleanups 2007-05-11 10:22:20 -04:00
Bill Hoffman
1794836ee3 ENH: fix build c stuff with c and c++ with c++ 2006-05-04 13:35:56 -04:00
Ken Martin
6b466654dc COMP: converted to lowercase commands 2005-06-20 11:49:29 -04:00
Andy Cedilnik
be45b5d205 ERR: Too much commits 2004-02-29 15:13:32 -05:00
Andy Cedilnik
07bd2d8264 ERR: Fix GetModulesFile 2004-02-29 15:13:01 -05:00
Andy Cedilnik
368d7f7c18 ENH: Attempt to add debug library postfix for visual studio 6 2003-10-31 16:55:49 -05:00
Andy Cedilnik
79651a2663 Fix problem with test on Borland 2003-01-03 16:14:14 -05:00
Andy Cedilnik
e7fd8fb12f Rename libraries from c1 to testc1 2003-01-02 09:06:24 -05:00
Andy Cedilnik
8714396927 Test conversion from ascii to string 2003-01-01 17:35:42 -05:00
Andy Cedilnik
fe6721af84 Shared library should export symbols on windows 2003-01-01 14:26:50 -05:00
Andy Cedilnik
9bb153cbf1 Test also stating and shared libraries 2002-12-31 15:22:48 -05:00
Andy Cedilnik
696d15c7ba Fix problem on HP 2002-10-07 09:20:47 -04:00
Andy Cedilnik
9ed93397fb If you specify header file as source, it should still use C compiler and not CXX. Also fix COnly test so that it make sure that this still works... 2002-10-06 12:12:59 -04:00
Bill Hoffman
4ea0f6b949 ENH: add enable language support for PROJECT command, this means that a C only project can be built with cmake, even without a cxx compiler 2002-04-02 15:43:23 -05:00