summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make the load of script documentation more efficient and dynamic.Eric NOULARD2012-02-145-25/+85
| | | | | | | | CPack help will be searched in any CPack*.cmake file located near to CPack.cmake file. The script files is parsed iff the first line begin with ##section. Moreover the documentation section name is specified on the remaining part of the line minus the space immediately following ##section.
* Fix another compiler warning due to a typoEric NOULARD2012-02-141-1/+0
|
* Really avoid compiler warning about unused varsEric NOULARD2012-02-142-6/+2
|
* Calm down compiler warning about unused varEric NOULARD2012-01-312-0/+4
|
* Fix potential bad memory access, thanks to EikeEric NOULARD2012-01-311-1/+1
|
* Suppress unused var, beautify code, avoid 1 extra newline.Eric NOULARD2012-01-241-18/+25
| | | | | | There remains extra newlines in text Formatter output but the parser does not seem to be the culprit. The formatter should be.
* Update bash completion file in order to handle new CPack doc options.Eric NOULARD2012-01-221-0/+10
|
* CPack Documentation extraction from CMake script begins to workEric NOULARD2012-01-2212-204/+387
| | | | | | | | | | - Enhance extract doc parser. Seems robust now. The legacy module documentation parser works as before ignoring the new markup. - Proof of concept for CPack (generic), CPack RPM and CPack Deb generator for macro and variables. Try cpack --help-command and cpack --help-variables
* Implement simple CMake script comment markup language.Eric NOULARD2012-01-227-9/+247
| | | | | | | | | The language is very simple. It use ##<keyword> special comment which opens a structured documentation block and ##end closes it. This may be used to extract documentation for macro as 'command' and 'variables' such that cpack --help-command and --help-variable does parse builtin modules files (CPack.cmake, CPackComponent.cmake, ...) in order to extract the corresponding doc.
* CPack begin the implementation of --help-command* and --help-variables*Eric NOULARD2012-01-2212-54/+312
| | | | | | This modifications set tries to keep the unified doc for cmake/ctest/cpack while introducing tool specific documentation separated. Some documentation sections for CMake do not fit well to CPack.
* KWSys Nightly Date StampKWSys Robot2012-01-211-1/+1
|
* KWSys Nightly Date StampKWSys Robot2012-01-201-1/+1
|
* KWSys Nightly Date StampKWSys Robot2012-01-191-1/+1
|
* KWSys Nightly Date StampKWSys Robot2012-01-181-1/+1
|
* Merge topic 'check_symbol_exists'David Cole2012-01-175-1/+124
|\ | | | | | | | | | | | | 6856b4d Merge topic 'link-shared-depend-cycle-issue-12647' into check_symbol_exists 8e1f376 add a test for Check{,CXX}SymbolExists 813eca6 CheckSymbolExists: force the compiler to keep the referenced symbol
| * Merge topic 'link-shared-depend-cycle-issue-12647' into check_symbol_existsRolf Eike Beer2012-01-166-3/+55
| |\
| * | add a test for Check{,CXX}SymbolExistsRolf Eike Beer2012-01-164-0/+123
| | | | | | | | | | | | | | | Now that we think that CheckSymbolExists really works for all cases it is time to prove that. If this code fails too many other things will break.
| * | CheckSymbolExists: force the compiler to keep the referenced symbolRolf Eike Beer2012-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the compiler may optimize out the reference to the symbol as the previous version was not really using this. This leads to symbols that are only in a header but not in the given libraries to be reported as present. This came up on the first try to fix bug 11333 as "gcc -O3" would optimize out the reference to pthread_create() so the correct library the symbol is in was not detected. The new test code was suggested by Brad King.
* | | Merge topic 'link-shared-depend-cycle-issue-12647'David Cole2012-01-176-3/+55
|\ \ \ | | |/ | |/| | | | | | | 8e756d2 Tolerate cycles in shared library link interfaces (#12647)
| * | Tolerate cycles in shared library link interfaces (#12647)Brad King2012-01-136-3/+55
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Since commit 183b9509 (Follow all dependencies of shared library private dependencies, 2011-12-14) we honor LINK_INTERFACE_LIBRARIES when following dependent shared libraries. The link interface properties may form a cycle if set incorrectly by a project. Furthermore, the property LINK_DEPENDENT_LIBRARIES may form a cycle if set incorrectly by hand (though CMake should never generate one). In either case, do not follow the cycle forever when following the dependent shared library closure. We only need to add dependency edges to the constraint graph once. Add "LinkInterfaceLoop" test to cover this case.
* | Merge topic 'add_CMakeOnly_test-infrastructure'David Cole2012-01-173-0/+22
|\ \ | |/ | | | | | | 9a20abf Add infrastructure for CMake-only tests
| * Add infrastructure for CMake-only testsBrad King2012-01-133-0/+22
| | | | | | | | | | | | | | | | Some tests only need to run CMake to configure and generate a build tree, but not actually perform the build. Add a new "Tests/CMakeOnly" directory dedicated for this purpose. Add a helper script to drive each test by creating a fresh build tree and running CMake on it. Add macro "add_CMakeOnly_test" to help create tests using the script.
* | Merge topic 'FindMPI-issue-12874'David Cole2012-01-171-1/+1
|\ \ | | | | | | | | | | | | 87737e6 FindMPI: Append MPI C++ library correctly in non-compiler case (#12874)
| * | FindMPI: Append MPI C++ library correctly in non-compiler case (#12874)Brad King2012-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When we have no MPI compiler wrapper and search explicitly for the MPI C++ library append it correctly to the list of libraries instead of using a space. Suggested-by: Mourad Boufarguine <bouffa@gmail.com>
* | | Merge topic 'CPackRPM-noFileListedTwice'David Cole2012-01-171-0/+19
|\ \ \ | | | | | | | | | | | | | | | | ae250d5 CPackRPM flag direcories with %dir in the generated spec file
| * | | CPackRPM flag direcories with %dir in the generated spec fileDeborah Pickett2012-01-131-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix bug #12863 whose symptom was a lot of "warning: File listed twice" printed out by rpmbuild when processing the spec file. Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* | | | Merge topic 'cm-bzip2-header-issue-10950'David Cole2012-01-178-6/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | d4a9e33 Include bzlib.h consistently across CMake build (#10950)
| * | | | Include bzlib.h consistently across CMake build (#10950)Brad King2012-01-138-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the approach originally used in commit f91b3c1d (Add options to build with system utility libraries, 2006-10-19) for all other third-party libraries. Create a "cm_bzlib.h" header wrapper that robustly includes the header from the bzip2 library chosen for the CMake build (either builtin or system version). Include the header wrapper anywhere we need the API provided by <bzlib.h>.
* | | | | Merge topic 'fixSymlinkInZIP'David Cole2012-01-171-3/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 768cf91 Do not add the content of a file if it's a symlink.
| * | | | | Do not add the content of a file if it's a symlink.Eric NOULARD2012-01-131-3/+7
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This wasn't necessary for TAR-like (TGZ, TBZ2, etc...) archive because for those the size was 0. Either there is an error in upstream libarchive concerning the size or we should not rely on size of the entry for adding content.
* | | | | Merge topic 'ExternalProject-git-cmd-version'David Cole2012-01-171-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4ac6ba2 ExternalProject: Update copyright year 8cb8ccc ExternalProject: Fix git.cmd version detection
| * | | | | ExternalProject: Update copyright yearBrad King2012-01-101-1/+1
| | | | | |
| * | | | | ExternalProject: Fix git.cmd version detectionBrad King2012-01-101-0/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When GIT_EXECUTABLE points at ".../Git/cmd/git.cmd" in an msysGit installation we previously failed to detect the version number in a subtle case. The "git.cmd" assumes 'chcp' is in PATH. It is typically available at "C:\Windows\System32\chcp.com". On 64-bit Windows the File System Redirector maps this location to "C:\Windows\SysWOW64\chcp.com" for 32-bit processes. However, some Windows installations fail to provide chcp.com at this path. Whenever git.cmd runs in a 32-bit command shell, as it does under a 32-bit CMake binary, it reports 'chcp' is not recognized as an internal or external command, operable program or batch file. on stderr. Capture stderr separately so it does not affect parsing of the version number. See also msysGit issue 358: http://code.google.com/p/msysgit/issues/detail?id=358 Note that FindGit prefers "git.cmd" over "git.exe" because it sets up the proper HOME environment variable necessary for Git ssh connections to work the same as they do from the Git bash prompt.
* | | | | Merge topic 'compiler-version'David Cole2012-01-178-8/+237
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0df1942 Detect SGI MIPSpro compiler version with its id a5e892c Document compiler version macro formats used for detection d7c6f41 Detect HP compiler version with its id 3dd9fa9 Detect SunPro compiler version with its id c198730 Detect Watcom compiler version with its id 5899b98 Detect Clang compiler version with its id b8cfa65 Detect PGI compiler version with its id 6dae666 Detect IBM XL compiler version with its id 4080d55 Detect Borland compiler version with its id 2cc205a Detect Intel compiler version with its id (#11937) a6d83cc Detect MSVC compiler version with its id a662855 Detect GNU compiler version with its id (#6251) fa7141f Add framework to detect compiler version with its id (#12408)
| * | | | | Detect SGI MIPSpro compiler version with its idBrad King2012-01-102-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from _SGI_COMPILER_VERSION or _COMPILER_VERSION to compute version number components. See documentation at: http://predef.sourceforge.net/precomp.html
| * | | | | Document compiler version macro formats used for detectionBrad King2012-01-102-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MSVC, HP, XL, SunPro, Watcom, Borland, and Intel compilers specify their version number in components encoded in a single integer value. Document the components that we use to compute version numbers.
| * | | | | Detect HP compiler version with its idBrad King2012-01-102-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __HP_cc and __HP_aCC to compute version number components. See documentation at: http://predef.sourceforge.net/precomp.html http://g4u0420c.houston.hp.com/en/14487/preprocess.htm
| * | | | | Detect SunPro compiler version with its idBrad King2012-01-102-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode hex digits from __SUNPRO_C and __SUNPRO_CC to compute the version number components. Note that the constant encodes decimal digits as hex digits (never larger than 9). We represent them as decimal after extraction. See documentation at http://predef.sourceforge.net/precomp.html Although the documented version number format is 0xVRP where V = Version, R = Revision, P = Patch it holds only though SunPro C/C++ version 5.9. Later versions have a two-digit revision (minor) number so their format is 0xVRRP.
| * | | | | Detect Watcom compiler version with its idBrad King2011-12-072-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __WATCOMC__ to compute the version number components. See documentation at: http://predef.sourceforge.net/precomp.html
| * | | | | Detect Clang compiler version with its idBrad King2011-12-072-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __clang_major__ __clang_minor__ __clang_patchlevel__ to compute version number components. See documentation at: http://clang.llvm.org/docs/LanguageExtensions.html#builtinmacros http://predef.sourceforge.net/precomp.html
| * | | | | Detect PGI compiler version with its idBrad King2011-12-072-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __PGIC__ __PGIC_MINOR__ __PGIC_PATCHLEVEL__ to compute version number components.
| * | | | | Detect IBM XL compiler version with its idBrad King2011-12-072-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __IBMC__ and __IBMCPP__ to compute version number components. See documentation at: http://predef.sourceforge.net/precomp.html http://publib.boulder.ibm.com/infocenter/comphelp/v111v131/topic/com.ibm.xlc111.aix.doc/compiler_ref/xlmacros.html http://publib.boulder.ibm.com/infocenter/comphelp/v111v131/topic/com.ibm.xlcpp111.aix.doc/compiler_ref/xlmacros.html
| * | | | | Detect Borland compiler version with its idBrad King2011-12-072-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode hex digits from __BORLANDC__ to compute the version number components. Note that the constant encodes decimal digits as hex digits (never larger than 9). We represent them as decimal after extraction. See documentation at http://predef.sourceforge.net/precomp.html http://docwiki.embarcadero.com/RADStudio/en/Predefined_Macros
| * | | | | Detect Intel compiler version with its id (#11937)Brad King2011-12-072-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __INTEL_COMPILER __INTEL_COMPILER_BUILD_DATE to compute the version number components. See documentation at: http://predef.sourceforge.net/precomp.html http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/fortran/lin/compiler_f/bldaps_for/common/bldaps_use_presym.htm
| * | | | | Detect MSVC compiler version with its idBrad King2011-12-072-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from _MSC_VER, _MSC_FULL_VER, and _MSC_BUILD to compute the version number components. See documentation at: http://msdn.microsoft.com/en-us/library/b0084kay.aspx http://predef.sourceforge.net/precomp.html
| * | | | | Detect GNU compiler version with its id (#6251)Brad King2011-12-072-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode decimal digits from __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__ to compute version components. See documentation at http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html http://predef.sourceforge.net/precomp.html
| * | | | | Add framework to detect compiler version with its id (#12408)Brad King2011-12-078-2/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge topic 'FindPythonLibs-single-user-issue-12869'David Cole2012-01-171-1/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a04ced3 FindPythonLibs: Search for single-user installs on Windows
| * | | | | | FindPythonLibs: Search for single-user installs on WindowsChristian Andersson2012-01-101-1/+6
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When cmake searches for Python libs in Windows it searches in: [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs However, the information might not always reside there. The information could also reside in: [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs when one installs Python for a single user and not for all users.
* | | | | | Merge topic 'vs10-fix-pdbname-issue-12328'David Cole2012-01-171-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 655a7dd VS10: Fix /pdb option vcxproj element name (#12328)