summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Features: Extend concept to C language.Stephen Kelly2014-05-146-5/+111
| | | | | | | | | | | 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.
* Merge topic 'WriteCompilerDetectionHeader-module'Brad King2014-05-141-0/+401
|\ | | | | | | | | 62a4a67d Add the WriteCompilerDetectionHeader module.
| * Add the WriteCompilerDetectionHeader module.Stephen Kelly2014-05-141-0/+401
| | | | | | | | | | | | | | | | Provide a function to write a portable header to detect compiler features. Generate a preprocessor #error for unknown compilers and compiler versions whose features are not yet recorded. This error condition might be relaxed in the future, but for now it is useful for verification of expectations.
* | FindGTest: use new add_test() signature (#14913)Rolf Eike Beer2014-05-121-1/+1
| | | | | | | | This allows to use target names as executables.
* | Merge topic 'features-gnu-oldest-supported'Brad King2014-05-121-10/+9
|\ \ | |/ | | | | | | f782417b Features: Record the oldest supported compiler.
| * Features: Record the oldest supported compiler.Stephen Kelly2014-05-081-10/+9
| | | | | | | | | | This may be used to ensure that features are reported correctly only if the compiler minimum version is met.
* | CMakeConfigurableFile: Remove excess newline.Stephen Kelly2014-05-101-1/+0
| |
* | Features: Fix GNU 4.8.1 version test.Stephen Kelly2014-05-101-1/+1
| |
* | Tests: Make CompileFeature tests use highest standard known.Stephen Kelly2014-05-091-0/+2
| | | | | | | | | | | | | | | | Remove the use of check_cxx_source_compiles which is now just getting in the way. Blacklist the cxx_alignof feature in the test with GNU 4.7. The test file compiles, but it is documented as available first in GNU 4.8.
* | Windows: Avoid () in environment variable referencesBen Boeckel2014-05-082-3/+5
|/ | | | Use nested variable evaluation instead.
* Merge topic 'GNU-4.7-features'Brad King2014-05-082-4/+3
|\ | | | | | | | | 9cbc63e4 Features: Record for GNU 4.7.
| * Features: Record for GNU 4.7.Stephen Kelly2014-05-072-4/+3
| | | | | | | | | | Update the CompileFeatures test to verify that unsupported features do not work.
* | Merge topic 'minor-cleanups'Brad King2014-05-081-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 47795421 Fix whitespace in docs. aa283b6b Features: Fix test for GNU 4.8.1. bbfd4cd4 Features: Include the language of the compiler in error messages.
| * | Features: Fix test for GNU 4.8.1.Stephen Kelly2014-05-071-1/+1
| | |
* | | Merge topic 'hp-cpp98-tests'Brad King2014-05-081-0/+9
|\ \ \ | | | | | | | | | | | | | | | | b0f277db HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards
| * | | HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwardsRolf Eike Beer2014-04-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Old versions of aCC need a special compiler flag to get full C++98 template support as e.g. CMake itself or the Complex and ComplexOneConfig tests need. The same versions need a special flag to get a proper C++ library, too.
* | | | Merge topic 'decay-language-version'Brad King2014-05-082-6/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 205215fb cmTarget: Add CXX_STANDARD_REQUIRED to control decay. 1df2116b Features: Decay language flag if requested is not available. c4f4dac2 Project: Fix exit-on-error with compile feature tests. 5bb7ce72 Project: Use nullary form of main for compile feature tests. 64254e7a Project: Remove extern from static string in feature tests. 0d9c99bf Help: Fix order of help entries. dc7639bd Tests: Fix name of cache variable.
| * | | | Features: Decay language flag if requested is not available.Stephen Kelly2014-05-071-0/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the highest standard compile flags available if requested language version is too new. This supports use-cases like set(CMAKE_CXX_STANDARD 14) # Compiled with -std=c++11 with GNU 4.7, which has no -std=c++14 # or equivalent flag add_executable(main main.cpp) This can be used in combination with preprocessor defines which communicate the availability of certain language features for optional use.
| * | | Project: Fix exit-on-error with compile feature tests.Stephen Kelly2014-05-071-4/+3
| | | |
| * | | Project: Use nullary form of main for compile feature tests.Stephen Kelly2014-05-071-1/+1
| | | |
| * | | Project: Remove extern from static string in feature tests.Stephen Kelly2014-05-071-1/+1
| | |/ | |/|
* | | Merge topic 'compiler-id-refactor'Brad King2014-05-0839-442/+448
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b59f8b7 Project: Refactor C compiler determination into multiple files. 8896501b CompilerId: Allow specifying a prefix for preprocessor defines. 23f451bb CompilerId: Guard the platform-default compiler code with a parameter. 30a99f5c CompilerId: Add option to generate compiler-id-specific defines. 36ed5894 CompilerId: Allow specifying the compiler-specific components to generate. 9a083bce Project: Split the compiler id detection into a separate function. 9d285600 Project: Generate the CXX compiler Id test from multiple files.
| * | | Project: Refactor C compiler determination into multiple files.Stephen Kelly2014-05-0711-233/+94
| | | |
| * | | CompilerId: Allow specifying a prefix for preprocessor defines.Stephen Kelly2014-05-0721-79/+82
| | | |
| * | | CompilerId: Guard the platform-default compiler code with a parameter.Stephen Kelly2014-05-072-6/+7
| | | |
| * | | CompilerId: Add option to generate compiler-id-specific defines.Stephen Kelly2014-05-071-2/+12
| | | |
| * | | CompilerId: Allow specifying the compiler-specific components to generate.Stephen Kelly2014-05-072-3/+22
| | | |
| * | | Project: Split the compiler id detection into a separate function.Stephen Kelly2014-05-072-74/+101
| | | | | | | | | | | | | | | | | | | | This can be extended with parameters to control the output and re-used in other contexts.
| * | | Project: Generate the CXX compiler Id test from multiple files.Stephen Kelly2014-05-0728-218/+303
| | | | | | | | | | | | | | | | | | | | | | | | This will allow sharing of the logic of the order to test compilers in and the preprocessor macros used to do that and to determine the version components.
* | | | Merge topic 'ncurses-tinfo'Brad King2014-05-081-3/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 1f646c6c FindCurses: Detect and satisfy ncurses dependency on tinfo 0e4a2c7e FindCurses: Honor CURSES_NEED_NCURSES when curses is found
| * | | | FindCurses: Detect and satisfy ncurses dependency on tinfoMark Wright2014-05-061-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When ncurses is built with USE=tinfo we need to find "tinfo" as a dependency of the main library. Otherwise 'cbreak' is missing: ld: ...: undefined reference to symbol 'cbreak' ld: note: 'cbreak' is defined in DSO /lib/libtinfo.so.5 so try adding it to the linker command line See https://bugs.gentoo.org/show_bug.cgi?id=468622 for more information. Applied-by: Rolf Eike Beer <eike@sf-mail.de>
| * | | | FindCurses: Honor CURSES_NEED_NCURSES when curses is foundMark Wright2014-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take our CURSES_USE_NCURSES code path when CURSES_NEED_NCURSES is enabled even if CURSES_CURSES_LIBRARY also happens to be found. Applied-by: Rolf Eike Beer <eike@sf-mail.de>
* | | | | Merge topic 'compiler-id-comment'Brad King2014-05-072-2/+2
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | c7ddd409 Project: Clarify comment about platform-native compilers.
| * | | | Project: Clarify comment about platform-native compilers.Stephen Kelly2014-05-072-2/+2
| | |/ / | |/| |
* | | | Merge topic 'osx-iframework'Brad King2014-05-072-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 1bed75a5 OS X: Use -iframework for system framework directories
| * | | | OS X: Use -iframework for system framework directoriesMikołaj Siedlarek2014-05-072-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just like -I flag has its -isystem counterpart which marks an include directory as a system directory and prevents unwanted warnings, on Apple systems there is -iframework -- a system directory replacement for -F. Use this flag to implement include_directories(SYSTEM) for frameworks.
* | | | | Merge topic 'xcode-sdkroot'Brad King2014-05-071-14/+29
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5dfe9b7d Xcode: Find fallback SDK if one matching the OS version doesn't exist.
| * | | | | Xcode: Find fallback SDK if one matching the OS version doesn't exist.Clinton Stimpson2014-05-061-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example if one installs Xcode 4.6 on OS X 10.9, it doesn't contain a 10.9 SDK, so fallback to the next newest version which, in this case, happens to be a 10.8 SDK. This fixes bug #14572.
* | | | | | Merge topic 'InstallRequiredSystemLibraries-vs12-mfc'Brad King2014-05-071-4/+21
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | c0a6646d InstallRequiredSystemLibraries: MBCS MFC is optional on VS 12 (#14903)
| * | | | | | InstallRequiredSystemLibraries: MBCS MFC is optional on VS 12 (#14903)Felix Krause2014-05-061-4/+21
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MBCS (Multi-Byte Character Set) has been deprecated with VS 2013, and MSVC no longer ships with an MBCS-version of MFC by default. However, it can be downloaded as an add-on. Teach InstallRequiredSystemLibraries to install the MBCS MFC only for VS < 12 or if it happens to exist on the system.
* | | | | | Merge topic 'ExternalProject_labels'Brad King2014-05-071-0/+5
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 93730bb3 ExternalProject: Set FOLDER property to targets 39ef8046 ExternalProject: Set LABELS property to targets
| * | | | | ExternalProject: Set FOLDER property to targetsDaniele E. Domenichelli2014-05-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This is useful when using the USE_FOLDERS global property
| * | | | | ExternalProject: Set LABELS property to targetsDaniele E. Domenichelli2014-05-051-0/+2
| | |_|/ / | |/| | | | | | | | | | | | | This is useful for using CDash subprojects.
* | | | | Merge topic 'CMAKE_CXX_KNOWN_FEATURES-global-property'Brad King2014-05-061-1/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3fdfa5d3 Features: Make CMAKE_CXX_KNOWN_FEATURES a property.
| * | | | | Features: Make CMAKE_CXX_KNOWN_FEATURES a property.Stephen Kelly2014-05-021-1/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | As a 'built-in' variable it imposes a cost on all variable lookups and it is expected to be rarely used.
* | | | | Merge topic 'dont-rewrite-moc-parameter-file'Brad King2014-05-061-1/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | 17c31b8b Qt4: Extend the Qt4Targets test to cover dir and target moc parameters. 6a5bd7f0 Qt4: write moc parameter file only when content has changed
| * | | | Qt4: write moc parameter file only when content has changedPeter Kümmel2014-04-251-1/+3
| | | | |
* | | | | Merge topic 'FindCUDA-cubin-fatbin'Brad King2014-05-011-29/+60
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80209fdb Help: Add notes for topic 'FindCUDA-cubin-fatbin' 231b30db FindCUDA: Add support for compilation to fatbin & cubin modules
| * | | | | FindCUDA: Add support for compilation to fatbin & cubin modulesTobias Zirr2014-04-301-29/+60
| | | | | |
* | | | | | Merge topic 'ExternalProject-verify-cmake-var'Brad King2014-05-011-1/+1
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | 420280f3 ExternalProject: Fix path to cmake in verify script