summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'if-test'Brad King2015-08-031-3/+3
|\ | | | | | | | | | | 14e49ed1 if: Add "TEST <test>" condition 623dcc85 ExternalProject: Avoid if() auto-dereference of a "TEST" variable
| * ExternalProject: Avoid if() auto-dereference of a "TEST" variableMatt McCormick2015-08-031-3/+3
| | | | | | | | Exposed by CMP0054 warnings.
* | Merge topic 'GetPrerequisites-updates'Brad King2015-08-031-0/+38
|\ \ | | | | | | | | | | | | | | | 5d0a8b1a GetPrerequisites: Optionally filter "objdump" output for speed afb674ab GetPrerequisites: Add error checks for execute_process() calls
| * | GetPrerequisites: Optionally filter "objdump" output for speedBill Somerville2015-07-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As dumpbin.exe is no longer reliable for gcc libraries on MinGW because it crashes on many common libraries like libgcc_s and libgfortran it is now necessary too resort to using objdump for DLL dependency walking. Using objdump has a secondary problem in that it generates a lot of output for large libraries and causes fixup_bundle() to take many minutes to process what took fractions of a second with "dumpbin.exe /dependents". Add a 'grep' pre-filter in the execute_process() command pipeline to reduce this output to a minimum for a several orders of magnitude speed up. If grep is not available just use the full output. As there does not seem to be a reliable way of detecting MinGW, callers of fixup_bundle() may have to set the variable gp_tool to "objdump" if dumpbin.exe is installed on the build machine to stop it using the broken MS dumpbin.exe for library dependency walking.
| * | GetPrerequisites: Add error checks for execute_process() callsBill Somerville2015-07-311-0/+30
| | | | | | | | | | | | | | | Add return status checks to external command invocations so that they do not fail silently producing incomplete install packages.
* | | Merge topic 'FindMPI-drop-GetPrerequisites'Brad King2015-08-031-5/+3
|\ \ \ | |/ / | | | | | | | | | 1c46b6ae FindMPI: Drop unnecessary and incorrect use of GetPrerequisites
| * | FindMPI: Drop unnecessary and incorrect use of GetPrerequisitesBrad King2015-07-311-5/+3
| |/ | | | | | | | | | | | | | | | | Since commit v2.8.5~121^2~2 (FindMPI: Handle multiple languages, 2010-12-29) we called the GetPrerequisites is_file_executable function but passed the name of a CMake variable instead of its value. Therefore the function has always failed and caused the search for the compiler name to run even with an absolute path. Switch to using if(IS_ABSOLUTE) instead and drop use of GetPrerequisites.
* | Merge topic 'FindOpenSSL-cleanup'Brad King2015-07-311-21/+20
|\ \ | | | | | | | | | | | | | | | fbcbf7f2 FindOpenSSL: De-duplicate find_library path suffixes on Windows 4c10461a FindOpenSSL: Remove extra whitespace
| * | FindOpenSSL: De-duplicate find_library path suffixes on WindowsThijs Wenker2015-07-301-12/+11
| | | | | | | | | | | | | | | Store the path suffixes in a variable and reference it in each find_library call.
| * | FindOpenSSL: Remove extra whitespaceThijs Wenker2015-07-301-9/+9
| |/
* | Merge topic 'SunOS-link-CXX-normally'Brad King2015-07-311-8/+0
|\ \ | | | | | | | | | | | | 60fe4b54 SunOS: Drop special case for linking C++ shared libraries with gcc (#15673)
| * | SunOS: Drop special case for linking C++ shared libraries with gcc (#15673)Brad King2015-07-301-8/+0
| |/ | | | | | | | | | | | | | | Since commit v2.4.0~4325 (...use gcc -shared, even for C++ libraries, 2003-03-13) we use the C compiler "gcc" to link C++ shared libraries compiled with "g++". At the time "g++" did not know how to link shared libraries correctly. This has long since been fixed so simply drop the special case.
* | Cray: Fix compiler version detection (#15664)Justin Cook2015-07-301-1/+1
|/
* Merge topic 'osx-iframework'Brad King2015-07-232-0/+10
|\ | | | | | | | | e68f0cb3 OS X: Use -iframework with AppleClang only on version >= 4.2
| * OS X: Use -iframework with AppleClang only on version >= 4.2Brad King2015-07-222-0/+10
| | | | | | | | | | | | | | Since commit v3.1.0-rc1~564^2 (OS X: Use -iframework for system framework directories, 2014-05-05) we test the version of Clang to see if it supports -iframework. Fix the version test used for AppleClang since it uses a different version scheme than upstream Clang.
* | Merge topic 'FindBZip2-check-with-prototype'Brad King2015-07-221-2/+4
|\ \ | | | | | | | | | | | | 23876eda FindBZip2: Check BZIP2_NEED_PREFIX with real prototype
| * | FindBZip2: Check BZIP2_NEED_PREFIX with real prototypeRalf Habacker2015-07-211-2/+4
| | | | | | | | | | | | | | | | | | | | | Run our check for the '_' prefix using a bzip2 API function as declared with a prototype in the real header file. This is needed in case the function is provided in a DLL import library where the symbol name may not match without proper markup from the header.
* | | Merge topic 'vs-compiler-feature-2015-update'Brad King2015-07-221-5/+5
|\ \ \ | |/ / |/| | | | | | | | c2d590c9 Features: Update MSVC features for VS 2015 RTM
| * | Features: Update MSVC features for VS 2015 RTMBrad King2015-07-211-5/+5
| |/ | | | | | | | | VS 2015 RTM completed support for constexpr and attribute features. Update our feature table and test accordingly.
| * Merge branch 'FindMPI-Intel-5' into releaseBrad King2015-07-131-1/+1
| |\
| * \ Merge branch 'CheckCompilerFlag-do-not-use-FLAGS' into releaseBrad King2015-07-083-12/+12
| |\ \
| * \ \ Merge branch 'FindMatlab-doc-section-headers' into releaseBrad King2015-07-061-8/+8
| |\ \ \
* | \ \ \ Merge topic 'KDE4-NO_POLICY_SCOPE'Brad King2015-07-211-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4572d8b3 KDE4: Find the Internal package with NO_POLICY_SCOPE.
| * | | | | KDE4: Find the Internal package with NO_POLICY_SCOPE.Stephen Kelly2015-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If someone in KDE wants to port away from OLD policies, they might want to do so one policy at a time. This patch will allow them to use find_package(KDE4 NO_POLICY_SCOPE) in callers to get around the CMP0011 warning, while still getting the policy settings contained within.
* | | | | | CMakeExpandImportedTargets: Document as deprecatedBrad King2015-07-171-3/+13
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The module is not needed anymore for try_compile or try_run. It cannot be used with CMP0022 NEW behavior due to generator expressions in INTERFACE_LINK_LIBRARIES, so document it as deprecated. Whatever problems other than try_compile and try_run anyone tried to solve with this module will have to be addressed another way.
* | | | | Merge topic 'cpack-per-component-extra-control-file'Brad King2015-07-171-3/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3e6b2ab6 CPack/DEB: component version of PACKAGE_CONTROL_EXTRA 506f6bc0 CPack/DEB: Remove duplicate string(TOUPPER) calls 32e9276a Tests/RunCMake/CPack/DEB: add verifyDebControl 47d1f118 Tests/RunCMake/CPack: found files should be preserved
| * | | | | CPack/DEB: component version of PACKAGE_CONTROL_EXTRADomen Vrankar2015-07-151-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Component version of CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA variable.
| * | | | | CPack/DEB: Remove duplicate string(TOUPPER) callsDomen Vrankar2015-07-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We compute _local_component_name the first time we check for CPACK_DEB_PACKAGE_COMPONENT so we can just re-use it later.
* | | | | | Merge topic 'makefile-target-messages'Brad King2015-07-151-1/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f0cad193 Tests: Add test for TARGET_MESSAGES global property 1d398478 Makefile: Optionally disable target completion messages in build output d560b46f CMakeGenericSystem: Recognize Watcom WMake generator as Makefile generator
| * | | | | | Makefile: Optionally disable target completion messages in build outputMichael Ensslin2015-07-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a TARGET_MESSAGES property to control whether Makefile targets print the "Built target " completion messages. Default to ON to preserve existing behavior.
| * | | | | | CMakeGenericSystem: Recognize Watcom WMake generator as Makefile generatorBrad King2015-07-141-1/+1
| | | | | | |
* | | | | | | Add EUROS RTOS platform description fileStanimir Kabaivanov2015-07-141-0/+19
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a basic platform module for EUROS RTOS (euros-embedded.com). Co-Author: Gerhard Gappmeier <gerhard.gappmeier@ascolab.com>
* | | | | | Merge topic 'refactor-rule-var-includes'Brad King2015-07-1438-72/+72
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c736de7b Factor an <INCLUDES> placeholder out of <FLAGS> in rule variables 6f94b03c Place <DEFINES> before <FLAGS> consistently across compilers
| * | | | | | Factor an <INCLUDES> placeholder out of <FLAGS> in rule variablesBrad King2015-07-1338-72/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the Makefile and Ninja generators to substitute for an <INCLUDES> placeholder instead of putting -I in <FLAGS>. Update our values for CMAKE_<LANG>_COMPILE_OBJECT, CMAKE_<LANG>_CREATE_ASSEMBLY_SOURCE, and CMAKE_<LANG>_CREATE_PREPROCESSED_SOURCE to place <INCLUDES> just before <FLAGS>.
| * | | | | | Place <DEFINES> before <FLAGS> consistently across compilersBrad King2015-07-136-12/+12
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update our values for CMAKE_<LANG>_COMPILE_OBJECT, CMAKE_<LANG>_CREATE_ASSEMBLY_SOURCE, and CMAKE_<LANG>_CREATE_PREPROCESSED_SOURCE to place <DEFINES> before <FLAGS> consistently across supported compilers. We already do this for most compilers, so update the rest for consistency.
* | | | | | Merge topic 'FindXercesC-versioned-library-2'Brad King2015-07-141-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | 38ddabb1 FindXercesC: Also search for xerces-c_2 (#15648)
| * | | | | FindXercesC: Also search for xerces-c_2 (#15648)Roger Leigh2015-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is the previous stable release name used on Windows.
* | | | | | Merge topic 'FindMPI-Intel-5'Brad King2015-07-131-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | / | | |_|_|/ | |/| | | cfd23d3f FindMPI: Extend Intel-MPI 5+ workaround for recent GCCs
| * | | | FindMPI: Extend Intel-MPI 5+ workaround for recent GCCsSean Brennan2015-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the workaround added by commit v3.2.0-rc1~278^2 (FindMPI: Workaround Intel MPI 5.0.1 exit code problem, 2014-12-04) with an additional/alternate keyword to recognize the case with recent GCCs.
* | | | | Merge topic 'FindIce-imported-targets'Brad King2015-07-101-0/+15
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 889b22e2 Help: Add notes for topic 'FindIce-imported-targets' cd4d2e9c FindIce: document imported targets 748f1eae FindIce: create imported targets for components
| * | | | | FindIce: document imported targetsRoger Leigh2015-07-091-0/+7
| | | | | |
| * | | | | FindIce: create imported targets for componentsDaniel Pfeifer2015-07-091-0/+8
| | | | | |
* | | | | | Merge topic 'compiler-feature-AppleClang-std-flags'Brad King2015-07-101-1/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 228643af AppleClang: Use modern C++14 standard flags for Apple Clang 6.1
| * | | | | | AppleClang: Use modern C++14 standard flags for Apple Clang 6.1Brad King2015-07-091-1/+4
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Apple Clang 6.1 compiler that comes with Xcode 6.3 is aware of the modern -std=c++14 and -std=gnu++14 flags, so use them instead of the "1y" flags. Suggested-by: darkapostle@rule506.net
* | | | | | Merge topic 'FindXercesC-versioned-library'Brad King2015-07-091-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d3d4d627 FindXercesC: Find versioned library on Windows
| * | | | | | FindXercesC: Find versioned library on WindowsRoger Leigh2015-07-081-1/+1
| |/ / / / /
* | | | | | Merge topic 'CheckCompilerFlag-do-not-use-FLAGS'Brad King2015-07-093-12/+12
|\ \ \ \ \ \ | |/ / / / / |/| | | | / | | |_|_|/ | |/| | | a639689c Check*CompilerFlag: Revert to previous method used to pass flags (#15641)
| * | | | Check*CompilerFlag: Revert to previous method used to pass flags (#15641)Brad King2015-07-083-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.3.0-rc1~397^2 (Check*CompilerFlag: Refactor method used to pass flags, 2015-02-24) these check modules pass the flags to the compiler front-end during linking as well as during compilation. This breaks checks for flags like '-x c++' that are meant only for the compilation step. Revert the change and add a test covering a compiler-only flag.
* | | | | Merge topic 'add-apple-swift-language'Brad King2015-07-085-0/+115
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bf112531 Add rudimentary support for the Apple Swift language with Xcode
| * | | | | Add rudimentary support for the Apple Swift language with XcodeBrad King2015-07-065-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the `Swift` language to be enabled with the Xcode generator for Xcode >= 6.1. Reject it on other generators and with older Xcode versions. Since Apple is the only vendor implementing the language right now, the compiler id can be just `Apple`.