summaryrefslogtreecommitdiffstats
path: root/Tests/SystemInformation
Commit message (Collapse)AuthorAgeFilesLines
* Features: Add support for C++14 features.Stephen Kelly2014-05-221-0/+1
| | | | Record the features implemented by GNU 4.9 and Clang 3.4.
* Features: Extend concept to C language.Stephen Kelly2014-05-141-0/+10
| | | | | | | | | | | Add properties and variables corresponding to CXX equivalents. Add features for c_function_prototypes (C90), c_restrict (C99), c_variadic_macros (C99) and c_static_assert (C11). This feature set can be extended later. Add a <PREFIX>_RESTRICT symbol define to WriteCompilerDetectionHeader to conditionally represent the c_restrict feature.
* Features: Add cxx_template_template_parameters.Stephen Kelly2014-04-161-0/+1
| | | | | Extend the existing feature infrastructure as needed to support both C++11 and C++98 features.
* Features: Add cxx_auto_type.Stephen Kelly2014-04-071-0/+2
| | | | | | | | | | | | | | Record the availability of this feature for GNU 4.8 on (UNIX AND NOT APPLE) only. In the future, availability can be recorded for earlier GNU, for other platforms and for other compilers. Initially the affected configurations are as restricted as possible to allow for easy testing while extending the features vector in only one dimension. The error message when using the set_property API directly is not very good, but follow up commits will provide origin debugging of the property and a target_compile_features command which will provide a configure-time backtrace when possible.
* Add some COMPILE_OPTIONS for specifying C++ dialect.Stephen Kelly2014-04-071-0/+4
| | | | | These are compiler-specific, compiler version specific, extension specific and standard version specific.
* Tests: Require CMake 3.0 for the SystemInformation test.Stephen Kelly2014-04-071-1/+1
| | | | Correctly identify AppleClang.
* Tests: Remove some trailing black lines.Stephen Kelly2014-02-171-2/+0
|
* OS X: Detect implicit linker framework search pathsBrad King2012-12-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we hard-coded a list of implicit framework directories but did not account for CMAKE_OSX_SYSROOT or for changes to the list across OS X versions. Instead we should automatically detect the framework directories for the active toolchain. The parent commit added the "-Wl,-v" option to ask "ld" to print its implicit directories. It displays a block such as: Framework search paths: /... Parse this block to extract the list of framework directories. Detection may fail on toolchains that do not list their framework directories, such as older OS X linkers. Always treat the paths <sdk>/Library/Frameworks <sdk>/System/Library/Frameworks <sdk>/Network/Library/Frameworks # Older OS X only /System/Library/Frameworks as implicit. Note that /System/Library/Frameworks should always be considered implicit so that frameworks CMake finds there will not override the SDK copies.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-6/+6
| | | | | | | | | | | | | | | | | 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
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-37/+37
| | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-132-9/+9
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Add platform variable for flags specific to shared librariesStephen Kelly2012-06-121-0/+2
| | | | | | Store in CMAKE_${lang}_COMPILE_OPTIONS_DLL flags from CMAKE_SHARED_LIBRARY_${lang}_FLAGS that are truly exclusive to shared libraries.
* Add platform variables for position independent code flagsStephen Kelly2012-06-121-0/+4
| | | | | | | | | | | | | | | | | | | | Store in new platform variables CMAKE_${lang}_COMPILE_OPTIONS_PIC CMAKE_${lang}_COMPILE_OPTIONS_PIE flags for position independent code generation. In almost all cases, this means duplication of the CMAKE_SHARED_LIBRARY_${lang}_FLAGS for the _PIC case and using the assumed pie equivalent for the _PIE case. Note that the GNU compiler has supported -fPIE since 3.4 and that there is no -fPIC on GNU for Windows or Cygwin. There is a possibility that the _PIE variables are not correct. However, as there is no backwards compatibility to be concerned about (as the POSITION_INDEPENDENT_CODE property is not used anywhere yet), the current state suffices.
* Add framework to detect compiler version with its id (#12408)Brad King2011-12-071-0/+4
| | | | | | | | | | | | | | | | | | | | 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.
* Remove CMAKE_SHARED_MODULE_RUNTIME_${lang}_FLAGBrad King2009-12-021-4/+0
| | | | | This platform configuration variable is unused. Modules are built using the value of CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG.
* Teach Xcode generator to set XCODE_VERSIONBrad King2009-09-231-0/+1
| | | | | 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.
* ENH: Report CMake logs in SystemInformation testBrad King2009-07-271-2/+4
| | | | | | | 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.
* ENH: Implicit link info for C, CXX, and FortranBrad King2009-07-231-0/+7
| | | | | | | | | | | | | 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.
* BUG: Fix SystemInformation dump outputBrad King2009-07-211-1/+1
| | | | | | | 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.
* ENH: preclean some warningsKen Martin2008-03-251-0/+1
|
* ENH: some more CMakeList cleanupsKen Martin2007-05-111-7/+7
|
* ENH: Adding support to link specifically to an archive or a shared library ↵Brad King2006-09-151-2/+16
| | | | 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.
* ENH: Display all output in ctestAndy Cedilnik2005-02-081-0/+2
|
* BUG: Need to include full output to be a useful test.Brad King2005-02-071-0/+2
|
* ENH:Add test for GET/SET_DIRECTORY_PROPERTYAndy Cedilnik2004-04-262-1/+25
|
* EHN: Also display Configure.h and Configure.hxx from cmsysAndy Cedilnik2003-08-081-0/+2
|
* ENH: Add option to retrieve list of macros. Close Bug #25 - Get_CMAKE_PROPERTIESAndy Cedilnik2003-08-062-0/+14
|
* BUG: Open as ascii to remove extra new linesAndy Cedilnik2003-08-051-1/+1
|
* ENH: Add accessor for the list of commandsAndy Cedilnik2003-08-042-7/+14
|
* ENH: Added dump of more files. Improved robustness of dump.Brad King2003-07-162-38/+63
|
* Display Cache and all variablesAndy Cedilnik2003-03-173-6/+21
|
* Add command for accessing cmake properties. At this point the only ↵Andy Cedilnik2003-03-061-0/+5
| | | | properties are VARIABLES and CACHE_VARIABLES. Also add test for this feature
* add some more printsBill Hoffman2003-01-172-1/+7
|
* fix for create shared libraryBill Hoffman2002-11-211-1/+1
|
* add print for compiler is gnuBill Hoffman2002-11-181-0/+3
|
* clean up test for html outputBill Hoffman2002-11-124-8/+26
|
* *** empty log message ***Bill Hoffman2002-11-121-1/+5
|
* fix project nameBill Hoffman2002-11-121-1/+1
|
* new testBill Hoffman2002-11-114-0/+91