Commit Graph

26 Commits

Author SHA1 Message Date
Brad King fa7141f5ad Add framework to detect compiler version with its id (#12408)
Teach CMakePlatformId.h to construct an "INFO:compiler_version[]" string
literal from macros COMPILER_VERSION_(MAJOR|MINOR|PATCH|TWEAK) to be
defined in CMake(C|CXX)CompilerId.(c|cpp) for each compiler.  Provide
conversion macros DEC() and HEX() to decode decimal or hex digits from
integer values.  Parse the version out of the compiler id binary along
with the other INFO values already present.

Store the result in variable CMAKE_<LANG>_COMPILER_VERSION in the format
"major[.minor[.patch[.tweak]]]".  Save the value persistently in
CMake(C|CXX)Compiler.cmake in the build tree.  Document the variable for
internal use since we do not set it everywhere yet.

Report the compiler version on the compiler id result line e.g.

  The C compiler identification is GNU 4.5.2

Report CMAKE_(C|CXX)_COMPILER_(ID|VERSION) in SystemInformation test.
2011-12-07 08:59:51 -05:00
Brad King 9daa4a6c3f Remove CMAKE_SHARED_MODULE_RUNTIME_${lang}_FLAG
This platform configuration variable is unused.  Modules are built using
the value of CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG.
2009-12-02 15:17:32 -05:00
Brad King e55bbab88b Teach Xcode generator to set XCODE_VERSION
We set the variable 'XCODE_VERSION' in the CMake language to the Xcode
version string (e.g. "3.1.2").  Platform config files may use it later.
2009-09-23 08:48:39 -04:00
Brad King 0afa7a95f2 ENH: Report CMake logs in SystemInformation test
This teaches the SystemInformation test to report the CMake log files
CMakeOutput.log and CMakeError.log from the CMake build tree and from
the SystemInformation test build tree.  These logs may help diagnose
dashboard problems remotely.
2009-07-27 12:35:12 -04:00
Brad King 07ea19ad1f ENH: Implicit link info for C, CXX, and Fortran
This teaches CMake to detect implicit link information for C, C++, and
Fortran compilers.  We detect the implicit linker search directories and
implicit linker options for UNIX-like environments using verbose output
from compiler front-ends.  We store results in new variables called

  CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES
  CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES

The implicit libraries can contain linker flags as well as library
names.
2009-07-23 10:07:25 -04:00
Brad King 924dd34451 BUG: Fix SystemInformation dump output
When this test was renamed from DumpInformation to SystemInformation the
configured header that points the dump executable to the directory
containing information files was broken.  No information has been dumped
by this test for 2 years!  This fixes it.
2009-07-21 10:56:31 -04:00
Ken Martin ce8810c4e7 ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
Ken Martin 2208231aac ENH: some more CMakeList cleanups 2007-05-11 10:22:20 -04:00
Brad King 1d0502927c ENH: Adding support to link specifically to an archive or a shared library based on the file name specified. This fixes the problem of having -lfoo linking to libfoo.so even when it came from libfoo.a being specified. 2006-09-15 14:09:10 -04:00
Andy Cedilnik 25cc03fd6f ENH: Display all output in ctest 2005-02-08 10:13:30 -05:00
Brad King f765a56de7 BUG: Need to include full output to be a useful test. 2005-02-07 09:05:04 -05:00
Andy Cedilnik e9b8a57c1f ENH:Add test for GET/SET_DIRECTORY_PROPERTY 2004-04-26 13:42:08 -04:00
Andy Cedilnik b6ac54c489 EHN: Also display Configure.h and Configure.hxx from cmsys 2003-08-08 10:20:40 -04:00
Andy Cedilnik 96d561aabc ENH: Add option to retrieve list of macros. Close Bug #25 - Get_CMAKE_PROPERTIES 2003-08-06 18:54:13 -04:00
Andy Cedilnik 2799e2c66b BUG: Open as ascii to remove extra new lines 2003-08-05 15:20:48 -04:00
Andy Cedilnik c7f1198a00 ENH: Add accessor for the list of commands 2003-08-03 20:47:44 -04:00
Brad King c2b98959c5 ENH: Added dump of more files. Improved robustness of dump. 2003-07-16 11:38:57 -04:00
Andy Cedilnik a2c4d8eb90 Display Cache and all variables 2003-03-17 08:25:45 -05:00
Andy Cedilnik 814b8856a0 Add command for accessing cmake properties. At this point the only properties are VARIABLES and CACHE_VARIABLES. Also add test for this feature 2003-03-06 11:20:26 -05:00
Bill Hoffman 0510292b9e add some more prints 2003-01-17 10:28:07 -05:00
Bill Hoffman e9687d931a fix for create shared library 2002-11-21 08:45:45 -05:00
Bill Hoffman 603af011c1 add print for compiler is gnu 2002-11-18 09:08:23 -05:00
Bill Hoffman 8b689f9a62 clean up test for html output 2002-11-12 14:18:36 -05:00
Bill Hoffman 59d623dc66 *** empty log message *** 2002-11-12 09:33:00 -05:00
Bill Hoffman 56d4bba759 fix project name 2002-11-12 09:31:05 -05:00
Bill Hoffman 928b9dee06 new test 2002-11-11 18:07:20 -05:00