Commit Graph

2570 Commits

Author SHA1 Message Date
Philip Lowman 78289320dd 10688: FindGTK2.cmake doesn't auto-detect macports 2010-08-19 22:05:05 -04:00
Philip Lowman a53b47a77c 10241: FindBISON.cmake clears wrong variable 2010-08-19 21:50:31 -04:00
Philip Lowman ed78a72a9b 11041: Improve FindCxxTest to use Python or Perl automatically; custom flags
Included patch by Simone Rossetto to check if either Python or Perl
are present in the system.  Whichever intepreter that is detected
is now used to run the test generator program.  If both interpreters
are detected, the CXXTEST_USE_PYTHON variable is obeyed.

Also added support for CXXTEST_TESTGEN_ARGS, for manually specifying
options to the CxxTest code generator.
2010-08-19 21:44:44 -04:00
Brad King 0ea9d650f7 Merge topic 'msvc-version'
76ed7f0 Set MSVC_VERSION for MSVC 6, 7, 7.1 (#7944)
2010-08-19 13:26:59 -04:00
Brad King 0596f0ce78 Merge topic 'FortranCInterface-doc-typo'
e872f5d FortranCInterface: Fix doc typo FC.h -> FCMangle.h
2010-08-19 13:26:45 -04:00
Brad King 8ccfc5e24d Merge topic 'TimeoutForExecuteProcessInVendorChecking'
e6c9bc2 Add timeout to execute_process() in CMAKE_DETERMINE_COMPILER_ID().
2010-08-19 13:26:07 -04:00
Brad King 9487612590 Merge topic 'CMakeParseArguments'
c327cbd Modules: Fix CMakeParseArguments copyright notice
9eb6cc1 Merge branch 'module-notices' into CMakeParseArguments
b173b87 Add macro CMakeParseArguments() and use it in FPHSA()
2010-08-19 13:23:02 -04:00
Rolf Eike Beer 76ed7f0556 Set MSVC_VERSION for MSVC 6, 7, 7.1 (#7944) 2010-08-17 18:02:30 -04:00
Brad King e872f5d70a FortranCInterface: Fix doc typo FC.h -> FCMangle.h 2010-08-17 16:43:20 -04:00
Alex Neundorf e6c9bc267b Add timeout to execute_process() in CMAKE_DETERMINE_COMPILER_ID().
In CMAKE_DETERMINE_COMPILER_ID_VENDOR() the compiler is called with various
arguments. In some cases, this can make the compiler hang and wait
forever for input (e.g. "as -v"). That's why add an timeout
so it terminates finally. 10 seconds should be more than enough,
this is the time it takes to startup the compiler, which is
usually quite fast.

Alex
2010-08-17 21:40:45 +02:00
Brad King 30f676c75f Merge topic 'ImproveAsmCompilerIDDetection'
b333779 Detect a COMPILER_ID also for ASM.
691fc2b Remove trailing spaces
2010-08-17 15:19:49 -04:00
Brad King 9e9d23fe0f Merge topic 'FixEclipseIncludePathParsingWithSpaces'
cac6edc Fix EclipseCDT parsing of builtin macros with spaces (#10868)
8102dc3 Fix EclipseCDT include path parsing with spaces (#10868)
2010-08-17 15:17:29 -04:00
Brad King 8f4cc1eb2b Merge topic 'FixZLIBVersion'
75e7278 Fix ZLIB version parsing if no TWEAK version exists
2010-08-17 15:16:47 -04:00
Brad King a890f6a00b Merge topic 'FixSubversionDoc'
3e126e4 Change documentation of Subversion_FOUND and SUBVERSION_FOUND.
2010-08-17 15:16:01 -04:00
Brad King 79383cfd97 Merge topic 'fix-issue-11035'
d570ee7 Fix 11035 : debug/release library configuration mistake
2010-08-17 15:15:30 -04:00
Brad King 69252437ef Merge topic 'python_add_module_scope'
42fd9a5 Bug with default library type of Python modules.
2010-08-17 15:15:04 -04:00
Brad King da6fc97f19 Merge topic 'tg/BlueGeneP'
7083c81 Add platform files for BlueGene/P systems
2010-08-17 15:14:07 -04:00
Brad King 57c5bf5b18 Merge topic 'FindGTK2_fixes'
f6ca76f Several fixes needed to improve Windows support
74a12f3 Add detection for new pangommconfig.h header file
2010-08-17 15:10:48 -04:00
Brad King 164a8568f1 Merge topic 'improve-cpack-docs'
cf4a50b Add documentation for CPACK_PROJECT_CONFIG_FILE.
2010-08-17 15:10:05 -04:00
Brad King 4d8f0c2974 Merge topic 'FindBoost_cygwin_fix'
8de0d1a Fixes problem finding libraries under Boost (#9510)
2010-08-17 15:09:45 -04:00
Brad King 32ebe21ad8 Merge topic 'intel-response-files'
4b1e5f0 Pass objects to Intel linker using a response file
2010-08-17 15:09:12 -04:00
Brad King c327cbdfef Modules: Fix CMakeParseArguments copyright notice
Fix format of the copyright notice to pass the ModuleNoticesTest.
2010-08-17 09:44:30 -04:00
Alex Neundorf b333779e34 Detect a COMPILER_ID also for ASM.
For assembler, the "compiler ID" cannot be detected by "compiling" a
source file, since there is not source file all assemblers understand.
Instead the function CMAKE_DETERMINE_COMPILER_ID_VENDOR() is used to
run the assembler and check its output.
For this the CMAKE_DETERMINE_COMPILER_ID_VENDOR() function had to be
extended so that it creates the run directory if it doesn't exist yet.

In CMakeASMInformation.cmake now also CMAKE_ASM_COMPILER_ID is used
(but there are no such files yet, will come with the support for the
IAR toolchain).

Alex
2010-08-15 16:36:38 +02:00
Alex Neundorf 691fc2baa8 Remove trailing spaces
Alex
2010-08-15 16:08:54 +02:00
Alex Neundorf cac6edcad9 Fix EclipseCDT parsing of builtin macros with spaces (#10868)
Patch from dnewmarch

Alex
2010-08-15 15:15:12 +02:00
Alex Neundorf 8102dc32a3 Fix EclipseCDT include path parsing with spaces (#10868)
Alex
2010-08-15 14:59:16 +02:00
Alex Neundorf 75e727855a Fix ZLIB version parsing if no TWEAK version exists
ZLIB_VERSION_STRING was "1.2.3.#define ZLIB_VERSION "1.2.3"" here, because
the result of the matching for the tweak version was also appended if there
was no TWEAK version and the regexp failed, which gives as result not
an empty string, but the full string.
Now it is only appended if the regexp matches.

Alex
2010-08-14 22:16:06 +02:00
Alex Neundorf b173b879f8 Add macro CMakeParseArguments() and use it in FPHSA()
This adds a macro cmake_parse_arguments() (as discussed on cmake-devel)
which can be used in macros or functions to help with parsing its
arguments. Detailled docs are included.
find_package_handle_standard_args() is the first user of this new macro.

Alex
2010-08-14 22:06:49 +02:00
Alex Neundorf 3e126e45bc Change documentation of Subversion_FOUND and SUBVERSION_FOUND.
As discussed on cmake-devel, here Subversion_FOUND is the recommended one.

Alex
2010-08-14 21:25:22 +02:00
Mathieu Malaterre d570ee7b5a Fix 11035 : debug/release library configuration mistake
Thanks to Dimitri Kaparis for report
2010-08-14 13:18:31 +02:00
Marcus D. Hanwell 42fd9a596f Bug with default library type of Python modules.
The _TARGET_SUPPORTS_SHARED_LIBS variable was being altered outside of
the find module, moving it into the function fixes any of these scoping
issues. Fix tested and verified in VTK and Titan.
2010-08-13 14:49:29 -04:00
Todd Gamblin 7083c81db7 Add platform files for BlueGene/P systems
BlueGeneP-base:    Internal base shared by static and dynamic files
BlueGeneP-static:  Platform file for all-static builds
BlueGeneP-dynamic: Platform file for "default" dynamic builds
2010-08-13 12:17:57 -04:00
Philip Lowman f6ca76f195 Several fixes needed to improve Windows support
* Add support for detecting fontconfig.h header
* Call find_package(Freetype) since it's required
* Add support for allowing users to add additional library directories
  via the GTK2_ADDITIONAL_SUFFIXES variable (kind of a future-kludge in
  case the GTK developers change versions on any of the directories in the
  future).
* Fixed a problem on Windows where you had to configure twice to find
  the gtk & gdk libraries
2010-08-12 01:45:19 -04:00
Philip Lowman 74a12f3042 Add detection for new pangommconfig.h header file
Thanks to Sune Vuorela & the Debian Project for the patch
http://git.debian.org/?p=collab-maint/cmake.git;a=commitdiff;h=5dc3acd7
2010-08-12 01:38:31 -04:00
David Cole cf4a50bcdb Add documentation for CPACK_PROJECT_CONFIG_FILE. 2010-08-11 11:40:11 -04:00
Philip Lowman 8de0d1a8ca Fixes problem finding libraries under Boost (#9510) 2010-08-10 22:05:17 -04:00
Brad King 74805b28c1 Merge topic 'ImprovedVersionCheckingInSomeModules'
430336c Merge branch 'findsubversion_fphsa_cleanup'
b6c6156 Use FPHSA() in FindSWIG, including version checking.
656cd2f Improved version checking for FindCUDA using the new mode of FPHSA
126db7b Improved version checking for FindSubversion using the new mode of FPHSA()
77d909b Fix DETAILS string with version number in FHPSA()
19b68b9 Improved version checking for FindJava using the new FPHSA() mode
6bb0b6e Improved version checking for FindRuby using the new mode of FPHSA()
946493f FindSquish doesn't detect the version, remove that from the documentation
cb9d1ea Add version checking support to FindFlex and FindPerlLibs
2010-08-10 14:51:45 -04:00
Brad King 430336c5e1 Merge branch 'findsubversion_fphsa_cleanup'
into ImprovedVersionCheckingInSomeModules

Conflicts:
	Modules/FindSubversion.cmake
2010-08-10 14:50:00 -04:00
Brad King cc31f89c17 Merge topic 'module-header-spelling'
2cde67a Modules: Fix spelling 'To distributed' -> 'To distribute'
2010-08-10 14:33:47 -04:00
Brad King 4b432328a2 Merge topic 'mingw-response-files'
b03f4ec No response files with GNU ld <= 2.16 (#10913)
2010-08-10 14:33:01 -04:00
Brad King fab51e6f8d Merge topic 'findsubversion_fphsa_cleanup'
a918bd5 FindSubversion: set compatibility variables based on FPHSA()
2010-08-10 14:32:19 -04:00
Brad King ab994bfe88 Merge topic 'findzlib_use_fphsa'
5f183ca FindZLIB: use the FPHSA version mode
2010-08-10 14:31:26 -04:00
Brad King 499e1c9598 Merge topic 'find-boost'
187e969 FindBoost: Search for Boost 1.43 and 1.44
2fec615 FindBoost: Search for Boost 1.42
2010-08-10 14:30:35 -04:00
Arjen Verweij 4b1e5f0152 Pass objects to Intel linker using a response file
Use response files for C and CXX languages with the Intel compiler on
Windows.  We already used them for Fortran.  This enables creation of
libraries and executables with a very large number of object files.
2010-08-10 09:34:12 -04:00
Todd Gamblin 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 2010-08-09 08:48:31 -04:00
Alex Neundorf b6c61561d6 Use FPHSA() in FindSWIG, including version checking.
Alex
2010-08-07 23:18:17 +02:00
Alex Neundorf 656cd2fad2 Improved version checking for FindCUDA using the new mode of FPHSA
Alex
2010-08-07 23:09:14 +02:00
Alex Neundorf 126db7b060 Improved version checking for FindSubversion using the new mode of FPHSA()
Alex
2010-08-07 23:00:31 +02:00
Alex Neundorf 77d909b559 Fix DETAILS string with version number in FHPSA()
If found, the version which was found should be stored in the DETAILS
string, but it was dereferenced twice, which was wrong.

Alex
2010-08-07 22:30:06 +02:00
Alex Neundorf 19b68b9fae Improved version checking for FindJava using the new FPHSA() mode
Alex
2010-08-07 22:29:08 +02:00
Alex Neundorf 6bb0b6e915 Improved version checking for FindRuby using the new mode of FPHSA()
Alex
2010-08-07 22:08:51 +02:00
Alex Neundorf 946493faa8 FindSquish doesn't detect the version, remove that from the documentation
Alex
2010-08-07 22:02:57 +02:00
Alex Neundorf cb9d1eaca4 Add version checking support to FindFlex and FindPerlLibs
Use the new mode of FPHSA() to add version checking for these two modules.

Alex
2010-08-07 22:01:44 +02:00
Brad King b03f4ec09d No response files with GNU ld <= 2.16 (#10913)
Older GNU ld does not support the @FILE syntax for response files.
Check the ld version on MinGW and MSYS before enabling the syntax.
2010-08-06 09:34:53 -04:00
Kovarththanan Rajaratnam a918bd5264 FindSubversion: set compatibility variables based on FPHSA() 2010-08-04 08:51:55 +02:00
Kovarththanan Rajaratnam 5f183caa7c FindZLIB: use the FPHSA version mode
Remove our implementation of version checking and instead use FPHSA()
2010-08-04 08:18:05 +02:00
Brad King 187e96990c FindBoost: Search for Boost 1.43 and 1.44
The current release is 1.43 and the next release will be 1.44.
2010-08-03 16:32:09 -04:00
Brad King 7e578b8d73 Merge topic 'ExternalProject-cygwin-make'
ed43ea6 ExternalProject: Fix $(MAKE) with cygpath on Windows
2010-08-03 16:21:55 -04:00
Brad King a1b9388bc3 Merge topic 'find_cygwin17'
462fa2d FindCygwin: add new registry entry for Cygwin 1.7 (#10951)
2010-08-03 16:19:05 -04:00
Brad King 976aaf45de Merge topic 'findzlib_fix_version'
6b9b9f4 FindZLIB: optimize zlib.h version parsing
2010-08-03 16:18:42 -04:00
Brad King cbfc37dc18 Merge topic 'fix-issue-9611'
963921f BUG: 0009611 Fix Arch independent FindJNI.cmake on Linux
2010-08-03 16:16:36 -04:00
Brad King 16dcaced74 Merge topic 'AddVersionChecking2FindPackageHandleStandardArgs'
d016468 -fix indentation of the documentation
d358cf5 add 2nd, more powerful mode to find_package_handle_standard_args()
2010-08-03 16:15:59 -04:00
Brad King 8c8aa7e8f6 Merge topic 'hurd-platform'
90467d6 GNU/Hurd platform support fixes (#9873)
2010-08-03 16:14:08 -04:00
Brad King 84394bcbea Merge topic 'find-libarchive'
a602f87 Add option CMAKE_USE_SYSTEM_LIBARCHIVE (#10923)
9e903b9 Add FindLibArchive module (#10923)
2010-08-03 16:13:25 -04:00
Brad King 1820a05cb2 Merge topic 'CPackDEB-auto-dependency-support'
ded3a15 CPackDeb  optionally generates auto-dependency list part fix of bug 10292
2010-08-03 16:12:37 -04:00
Brad King 68efc3ef86 Merge topic 'fix-issue-11034'
9fa49dc ExternalProject: Remove 'unknown keyword' warning (#11034)
2010-08-03 16:11:01 -04:00
Brad King dac2afec25 Merge topic 'FixTypoInMacroAddFileDependencies'
44ae8bd -fix typo in docs of deprecated MacroAddFileDependencies.cmake
2010-08-03 16:10:06 -04:00
Brad King df54303065 Merge topic 'AdditionalLibTiffName'
14dfdc3 -add an additional name for finding libtiff on Windows
2010-08-03 16:09:44 -04:00
Brad King 70a8e10495 Merge topic 'findopenssl-path-fix'
ca5c522 Add missing PATHS to find_path commands to fix openssl searching
2010-08-03 16:08:39 -04:00
Brad King eb6d6a3708 Merge topic 'fix-issue-10020'
979972f Copy Resources in Frameworks during fixup_bundle (#10020)
2010-08-03 16:07:54 -04:00
Brad King ed43ea603f ExternalProject: Fix $(MAKE) with cygpath on Windows
In non-cygwin builds using Cygwin's make tool, use cygpath to transform
the value of $(MAKE) to something Windows understands.
2010-08-02 12:02:15 -04:00
Kovarththanan Rajaratnam 462fa2d185 FindCygwin: add new registry entry for Cygwin 1.7 (#10951)
This patch adds support for Cygwin 1.7 which uses a new registry entry

Patch by Fabrice Aeschbacher
2010-07-31 07:51:00 +02:00
Kovarththanan Rajaratnam 6b9b9f44c8 FindZLIB: optimize zlib.h version parsing
Read zlib.h by using file(STRINGS.....REGEX) to limit the amount of text we apply the version regex on. This patch also addresses the fact that the version string may contain a tweak component.

Patch by Simone Rossetto
2010-07-31 07:24:47 +02:00
Mathieu Malaterre 963921f2a8 BUG: 0009611 Fix Arch independent FindJNI.cmake on Linux 2010-07-30 10:19:42 +02:00
Alex Neundorf d016468e9c -fix indentation of the documentation
Alex
2010-07-29 19:09:59 +02:00
Pino Toscano 90467d6294 GNU/Hurd platform support fixes (#9873)
Define use of -rpath-link and --export-dynamic flags.  The toolchain on
Hurd is GNU-based so we can use the values from Linux.
2010-07-29 10:43:03 -04:00
Brad King 9e903b9f0e Add FindLibArchive module (#10923) 2010-07-29 10:13:25 -04:00
Alex Neundorf d358cf5cc4 add 2nd, more powerful mode to find_package_handle_standard_args()
This additional mode also supports version checking and should be
easily extendible, e.g. for COMPONENT stuff.
Updated FindBISON.cmake as first user of this new mode.
Docs updated.

Alex
2010-07-29 00:09:14 +02:00
Eric NOULARD ded3a1585b CPackDeb optionally generates auto-dependency list part fix of bug 10292
The default behavior is not to activate this option because it may break
DEB package building for project who does not use INSTALL RPATH.
2010-07-28 18:24:20 +02:00
Brad King 2fec615852 FindBoost: Search for Boost 1.42 2010-07-28 10:29:40 -04:00
David Cole 9fa49dc3ad ExternalProject: Remove 'unknown keyword' warning (#11034)
The intent was to warn about misspelled keyword arguments,
but the effect was to warn about valid argument values far
too often. Let's stop annoying and confusing people.
2010-07-28 08:16:08 -04:00
Alex Neundorf 44ae8bd9ee -fix typo in docs of deprecated MacroAddFileDependencies.cmake
Patch on the mailing list by Serge Ziryukin.

Alex
2010-07-27 22:47:18 +02:00
Alex Neundorf 14dfdc3e42 -add an additional name for finding libtiff on Windows
libtiff also exists as tiff.dll/lib under Windows, patch from
Patrick Spendrin (#10942)

Alex
2010-07-27 22:33:34 +02:00
Mathieu Malaterre ca5c5221b7 Add missing PATHS to find_path commands to fix openssl searching 2010-07-27 18:26:55 +02:00
David Cole 979972f988 Copy Resources in Frameworks during fixup_bundle (#10020)
By default, if an embedded item is a framework, copy its
main dylib file explicitly, and then also its Resources
if it has any.

Inspect a variable, BU_COPY_FULL_FRAMEWORK_CONTENTS, and
if it's ON, copy the entire framework into the bundle.
2010-07-27 12:25:11 -04:00
David Cole b62fe1242f ExternalProject: Use $(MAKE) whenever possible.
ExternalProject_Add calls that did not explicitly request a
CMAKE_GENERATOR would not get recursive parallel make behavior.
This commit fixes that issue.
2010-07-23 13:51:37 -04:00
Brad King 946798f405 Merge topic 'findqt4-cross-compile'
c019427 Fix mingw/VS warning message with cross compile re-org.
2010-07-20 16:00:59 -04:00
Brad King e1a4c02bac Merge topic 'resolve/doc-spelling/CPackRPM'
7739d78 Merge CPackRPM changes into doc-spelling
9203e91 Fix spelling errors reported by Lintian.
2010-07-20 16:00:29 -04:00
Clinton Stimpson c0194278ac Fix mingw/VS warning message with cross compile re-org. 2010-07-15 10:23:32 -06:00
Brad King f7a0386fc5 Merge topic 'resolve/ctest-file-checksum/remove-CTestTest3'
38c762c Merge 'remove-CTestTest3' into ctest-file-checksum
46df0b4 Activate retry code on any curl submit failure.
8705497 Checksum test should use CMAKE_TESTS_CDASH_SERVER
d0d1cdd Mock checksum failure output for old CDash versions
af5ef0c Testing for CTest checksum
86e81b5 CTest should resubmit in the checksum failed case
d6b7107 Fix subscript out of range crash
082c87e Cross-platform fixes for checksum/retry code
e525649 Checksums on CTest submit files, and retry timed out submissions.
2010-07-13 17:05:33 -04:00
Brad King 38c762c728 Merge 'remove-CTestTest3' into ctest-file-checksum
Conflicts:
	Tests/CMakeLists.txt
2010-07-13 17:01:39 -04:00
Brad King a570ba6df7 Merge topic 'external-project-launcher'
b2634b6 Detect CMake warnings and errors in build output.
012c986 ExternalProject: Add LOG_* options to hide step output
2010-07-13 14:58:11 -04:00
Brad King 36f82f06b7 Merge topic 'CPackRPM-RelocatablePackage'
604c369 CPackRPM:: [partially] support relocatable package
2010-07-13 14:54:09 -04:00
Brad King edbaf90a02 Merge topic 'FindPostgreSQL'
56da481 Changed ADDITIONAL_SEARCH_PATHS to PostgreSQL_ADDITIONAL_SEARCH_PATHS.
106de67 Forgot the copyright notice.
5ecfe16 Adding a FindPostgreSQL.cmake module
2010-07-13 14:52:34 -04:00
Brad King 8212d90cb5 Merge topic 'findqt4-cross-compile'
7fd3739 Find correct Qt plugins for cross-compiling.
ff888dd Fix some issues with refinding when qmake executable is changed.
22e725f Tweak for cygwin, don't convert : to ;
b55da4c Add cross-compiling support to FindQt4.cmake
2010-07-13 14:48:24 -04:00
Brad King 7739d786a4 Merge CPackRPM changes into doc-spelling
Conflicts:
	Modules/CPackRPM.cmake
2010-07-13 09:46:52 -04:00
Kai Wasserbäch 9203e9187e Fix spelling errors reported by Lintian.
During a Lintian run on the binary packages of CMake in Debian I was
notified of many spelling mistakes.
2010-07-13 09:41:37 -04:00
David Cole b2634b6aa3 Detect CMake warnings and errors in build output.
Fix niggly in ExternalProject that would inadvertently
create a log file of output when a command was explicitly
set to the empty string.

Also, increase the default value for showing context
around build errors to 10 lines, up from 6. Also add
the ability to customize this setting so that users
can put it back to 6 or even lower if they want, or
show more if they want.
2010-07-10 15:04:31 -04:00
Eric NOULARD 604c3698c1 CPackRPM:: [partially] support relocatable package
The support is partial because it cannot be used if
   CPACK_SET_DESTDIR is set
   some file are installed using absolute path
2010-07-09 20:01:57 +02:00
Andrew Maclean 56da481eff Changed ADDITIONAL_SEARCH_PATHS to PostgreSQL_ADDITIONAL_SEARCH_PATHS. 2010-07-09 15:30:21 +10:00