summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Document usage of the include(CTest) moduleBrad King2009-12-041-9/+45
| | | | | | Previously this module gave only very brief documentation. We extend the module's documentation to describe CTestConfig.cmake, interaction with dashboard scripts, and the CTEST_USE_LAUNCHERS option.
* Fix issue #2336 - honor the -C arg to ctest. Honor it for all stages of ↵David Cole2009-12-042-6/+12
| | | | running -D dashboards from the command line and running ctest_configure, ctest_build and ctest_test commands in -S scripts. Also, allow a script to change it by setting the CTEST_CONFIGURATION_TYPE variable: allows for multiple configuration build/test cycles within one script. Add a new signature for the cmake command build_command that accepts CONFIGURATION as one argument. The original build_command signature is still there, but now marked as deprecated in the documentation. Of course... also add CTestConfig tests to verify that -C is honored for -D dashboards and -S scripts.
* Remove GNU-specific flags from Linux.cmakeBrad King2009-12-044-7/+0
| | | | | | | | We remove the shared library compile/link flags "-fPIC" and "-shared" because they are not provided by all compilers on Linux. This allows us to drop code from the Linux-XL-*.cmake files that erases the bad flags. All other supported compilers already provide their correct flags for Linux in their own platform information files.
* Generalize support for Portland Group CompilerBrad King2009-12-048-15/+86
| | | | | | | | | | | | | | | We factor flags from Platform/Linux-PGI-Fortran.cmake into language independent helper modules Compiler/PGI.cmake Platform/Linux-PGI.cmake and invoke the macros from Compiler/PGI-<lang>.cmake Platform/Linux-PGI-<lang>.cmake This enables general support for the PGI compilers.
* Remove duplicate info from Linux SunPro info filesBrad King2009-12-043-6/+0
| | | | | The CMAKE_DL_LIBS variable is set platform-wide by Linux.cmake so we do not need to duplicate it in Linux-SunPro-<lang>.cmake files.
* Consolidate Linux Intel compiler informationBrad King2009-12-044-28/+38
| | | | | We consolidate duplicate code from Platform/Linux-Intel-<lang>.cmake files into a macro defined in Platform/Linux-Intel.cmake.
* Fix GNU C and Fortran flags on SunOSBrad King2009-12-042-1/+3
| | | | | | | | | | | The commit "Split GNU compiler information files" intended to move GNU flags from the platform-wide Platform/SunOS.cmake module into Platform/SunOS-GNU-<lang>.cmake using a helper module Platform/SunOS-GNU.cmake to consolidate flags. However, it accidentally put Fortran flags in the C language module and left out the Fortran module altogether. This fixes those mistakes.
* Move GNU flags from SunOS.cmake to SunOS-GNU.cmakeBrad King2009-12-022-17/+9
| | | | | The GNU-specific link-type flags do not belong in the platform-wide file.
* Reduce duplication in Platform/<os>.cmake filesBrad King2009-12-0216-22/+16
| | | | | | | | | | | | | Several platform-wide linker flag variables are defined in Modules/Platform/<os>.cmake files for C and then copied by the Modules/CMake<lang>Information.cmake file for each language. We now use this approach for the variables CMAKE_EXE_EXPORTS_${lang}_FLAG CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS to avoid duplication for multiple languages in each platform file.
* Remove CMAKE_SHARED_MODULE_RUNTIME_${lang}_FLAGBrad King2009-12-024-22/+0
| | | | | This platform configuration variable is unused. Modules are built using the value of CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG.
* Fix OS X dylib and module GNU flagsBrad King2009-12-024-0/+30
| | | | | | | | | | | The commit "Split GNU compiler information files" broke the settings of CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS and started using just "-shared" for them. This worked when tested on newer Mac machines, but older ones really need "-dynamiclib" and "-bundle" (which are the documented flags anyway).
* Modernize GNU compiler info on WindowsBrad King2009-12-026-98/+83
| | | | | | | | | | | | This moves GNU compiler info on Windows into new-style modules Platform/Windows-GNU-<lang>.cmake using language-independent helper module Platform/Windows-GNU.cmake to define macros consolidating the information.
* Split GNU compiler information filesBrad King2009-12-0232-158/+204
| | | | | | | | | | | | | | This moves GNU compiler flags into new-style modules Compiler/GNU-<lang>.cmake Platform/<os>-GNU-<lang>.cmake We use language-independent helper modules Compiler/GNU.cmake Platform/<os>-GNU.cmake to define macros consolidating the information.
* Use one arch for 1.4-compatible check_type_sizeBrad King2009-12-011-0/+16
| | | | | | | | | The CMakeBackwardCompatibilityC module provides some try-compile results that were automatically provided by CMake 1.4. When performing the checks for OS X universal binaries we just pick one architecture to get through the checks without error. Since CMake 1.4 did not support any universal binaries, projects that want them should not depend on this compatibility module anyway.
* Fix #9970: Use execute_process instead of deprecated exec_program.James Bigler2009-12-011-1/+1
|
* Drop -rdynamic from Linux build rulesBrad King2009-12-0112-16/+0
| | | | | | | | | | | | | | | This is a GNU-specific option that should not be specified for all compilers on Linux. It tells the GNU compiler to pass -export-dynamic to the linker to export symbols from executables for use by plugins. Since we provide the ENABLE_EXPORTS target property to do the same thing in a cross-platform way, there is no need to pass -rdynamic always. Since the option is not useful for GNU tools and breaks other tools on Linux we simply remove it from CMAKE_SHARED_LIBRARY_LINK_<lang>_FLAGS. This also allows us to stop setting the variable in other Linux compiler files just to erase the bad flag. See issue #9985.
* Don't allow -G -M on CUDA versions less than 3.0.James Bigler2009-11-301-1/+15
|
* Singly-quote target names for Watcom linkerBrad King2009-11-301-4/+4
| | | | | | | The Watcom tools do their own command-line parsing and do not accept double-quotes. Instead we single-quote the target output name when invoking wlink and other Watcom tools. This fixes support for spaces in the target output directory path when it is not under the build tree.
* CPackRPM:: Fix bug on Open SuSE 11.2 coming from initial fix of bug8972Eric Noulard2009-11-281-5/+18
| | | | Eric
* also provide QT_DESIGNER_EXECUTABLE and QT_LINGUIST_EXECUTABLEAlexander Neundorf2009-11-231-1/+18
| | | | Alex
* CPackRPM: do not forget to include installed symlinks (bug 9927)Eric Noulard2009-11-221-1/+5
| | | | Eric
* don't use deprecated UsePkgConfig.cmake file in FindLibXslt.cmake, some ↵Alexander Neundorf2009-11-222-32/+22
| | | | | | | | | | cosmetics -use find_package(PkgConfig) instead of include(UsePkgConfig) -remove the "if already cached make silent" logic, this is already handled by find_package_handle_standard_args() -remove the if(WIN32) around pkg-config, it shouldn't be necessary Alex
* Fix the build for non-MS compilers.Bill Hoffman2009-11-211-1/+3
|
* Change the way 32/64 bit compiles are detected with MSVC and intel makefile ↵Bill Hoffman2009-11-209-36/+62
| | | | builds. Use the platform ID preprocessor approach.
* FortranCInterface: Honor language flags in checksBrad King2009-11-192-0/+6
| | | | | | | We pass CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, and CMAKE_Fortran_FLAGS through try_compile() for the FortranCInterface Detect and Verify projects. This honors user-specified compiler flags for each language, thus supporting flags that affect the Fortran mangling.
* Fix FindOpenSSL on mingw. This has been reported to be working by ctrlaltca ↵Mathieu Malaterre2009-11-191-63/+70
| | | | libero.it on cmake mailing list.
* Fix bug #9918, spaces included in QT_LIBRARIES when using QtOpenGL.Clinton Stimpson2009-11-181-0/+1
|
* only add -DQT_DLL on Windows, ok by ClintonAlexander Neundorf2009-11-171-2/+2
| | | | Alex
* Don't search for QtMotif on all platforms - only on X11.Clinton Stimpson2009-11-171-39/+46
|
* FortranCInterface: Use CMake 2.8.0 behaviorBrad King2009-11-171-0/+7
| | | | | | | The FortranCInterface module should execute with CMake 2.8.0 behavior even if policies are set differently by the including project. In particular, it makes use of empty list elements and therefore expects NEW behavior of CMP0007.
* CPackRPM: tolerate redhat specific clean BUILD ROOT pre-build macro (bug 9872)Eric Noulard2009-11-151-11/+15
| | | | Eric
* Document X11_X11_LIB and X11_X11_INCLUDE_PATHAlexander Neundorf2009-11-151-0/+1
| | | | Alex
* Split some logic of FindQt4.cmake into separate files, which are included ↵Alexander Neundorf2009-11-153-672/+750
| | | | | | | | | | | | | | | | | | automatically. Qt4Macros.cmake: all the "public" macros of FindQt4.cmake Qt4ConfigDependentSettings.cmake: the code for detecting the Qt-configuration dependent additional libraries, e.g. when linking statically. There should be no functional changes in this patch. The patch reduces the length of FindQt4.cmake from 1700 lines to around 1000 lines, which is still long enough, but this should make the file a easier to handle (and it is similar to what we do in KDE with FindKDE4Internal.cmake and KDE4Macros.cmake) Ok by Clinton. Alex
* Fixed parallel HDF5 detection when HDF5_INCLUDE_DIRS has multiple items.Will Dicharry2009-11-131-4/+4
|
* Changed HDF5_INCLUDE_DIR to HDF5_INCLUDE_DIRS to conform to standards.Will Dicharry2009-11-131-10/+10
|
* BUG: rename MPI_PACKAGE_DIR and MPI_PREFIX_PATH vars to be prefixed with _ ↵Dave Partyka2009-11-131-12/+12
| | | | to prevent conflicts with known variable names in other projects.
* BUG: fix MPI_BASE_DIR var to be called _MPI_BASE_DIR to prevent conflicts ↵Dave Partyka2009-11-131-9/+9
| | | | with known variable names in other projects.
* Fix regression with CPACK_NSIS_PACKAGE_NAME, if the project is setting the ↵Bill Hoffman2009-11-121-2/+16
| | | | CPACK_NSIS_DISPLAY_NAME then use that as the default value and not the CPACK_PACKAGE_INSTALL_DIRECTORY, also make sure it escapes \ correctly.
* also search for "qmake-mac", which is installed by macports ↵Alexander Neundorf2009-11-121-1/+3
| | | | | | (http://lists.kde.org/?l=kde-core-devel&m=125797773120427&w=2) Alex
* CPackRPM:: add support for USER specified post/pre [un]install scripts (fix ↵Eric Noulard2009-11-111-1/+73
| | | | | | bug 8988) Eric
* CPackRPM:: support user supplied "Provides" in spec file (fix bug 9584)Eric Noulard2009-11-111-1/+16
| | | | Eric
* Search for the header QtAssistant for QT_QTASSISTANT_INCLUDE_DIR instead of ↵Alexander Neundorf2009-11-101-1/+1
| | | | | | | | | QtAssistantClient This should not change the result (since both should be in the same directory), but seems a bit more logical and is also in sync with what is done in the KDE version. Alex
* CPackRPM:: Support USER supplied spec files (bug 9679)Eric Noulard2009-11-091-45/+79
| | | | Eric
* Fix CPack bug #9654Eric Noulard2009-11-091-2/+11
| | | | Eric
* Sort documentation entries better and move mark_as_advanced() a bit backAlexander Neundorf2009-11-091-12/+12
| | | | Alex
* -another tiny sync with KDE4, no functional changesAlexander Neundorf2009-11-081-2/+6
| | | | Alex
* some syncing with FindQt4.cmake from KDE, no functional changesAlexander Neundorf2009-11-081-9/+16
| | | | | | | | -the mark_as_advanced() calls for the variables coming from qmake are now in the corresponding section, and not in the section where the include dirs are foudn Alex
* Add jom find moduleBill Hoffman2009-11-061-0/+18
|
* Remove non-language implicit link dependenciesBrad King2009-11-051-5/+16
| | | | | | | | | | | | | | | | Some compilers use implicit link options of the form -lcrt*.o -lgcc* -lSystem (on Mac) -lSystemStubs (on Mac) that provide system-wide symbols not specific to any language. These need not be listed explicitly for mixed-language linking. We teach CMake to remove the above items from the implicit library list of each language. This change makes it possible to mix GNU compiler versions in some cases.
* Add more documentation to moduleMathieu Malaterre2009-11-041-0/+14
|