summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* KWSys Nightly Date StampKWSys Robot2009-12-031-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-12-021-1/+1
|
* 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.
* Hanle the case where a test can not be run because it is a bad executable.Bill Hoffman2009-12-022-15/+14
|
* 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-026-30/+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).
* Fix .vfproj files with per-source settingsBrad King2009-12-021-0/+4
| | | | | | | The Intel Fortran plugin to VS defines VFFortranCompilerTool as the compiler tool. This commit fixes generated projects to use that tool for per-source settings instead of VCCLCompilerTool. We were already using it for target-wide compiler settings.
* 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.
* Remove unnecessary configure time operations from CTestTest* testsZach Mullen2009-12-026-48/+0
|
* Make CTestTestTimeout time configurableBrad King2009-12-023-3/+9
| | | | | | | | | | | | | | | | In this test we start up a cmake script that runs a process that sleeps, and the timeout for the script is shorter than the sleep time. However, in order to properly detect that the sleeping grandchild is killed when the script times out we need to give sufficient time for the script to start the grandchild. Otherwise the log file for the grandchild is not available. On some (cygwin) builds our previous 1 second timeout for the script was not long enough to let the interpreter load and start the grandchild. We make the timeout time configurable by setting CTestTestTimeout_TIME in the cache for CMake itself. It tells the test how long to let the script run. The grandchild always sleeps for 4 seconds longer to ensure a comfortable window during which the process tree can be killed.
* Remove unused code from CTest test suiteBrad King2009-12-027-79/+5
| | | | | We remove from Tests/CTestTest*/CMakeLists.txt some historical cruft that is no longer used by the test suite.
* KWSys Nightly Date StampKWSys Robot2009-12-011-1/+1
|
* 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.
* curl: Hard-code HAVE_W* macros on UNIX for CygwinBrad King2009-12-011-0/+6
| | | | | | | | | The curl library code assumes that HAVE_WINDOWS_H and similar macros are not defined on Cygwin. Its CMake code achieved this by not even testing for the corresponding headers on UNIX platforms. However, libarchive does test HAVE_WINDOWS_H and confuses our curl build. We avoid the conflict by hard-coding the macros to 0 for UNIX builds inside the curl tree.
* Always use a configuration for CTestTestTimeoutBrad King2009-12-012-1/+14
| | | | | | | | This test requires that the dashboard script it drives be invoked with "ctest -C <config> -S ...". We create a "CTestTest_CONFIG" variable to hold a configuration selected at test time. We use the configuration given to the outer CTest, if any, and then default to either Debug or the CMAKE_BUILD_TYPE.
* KWSys: List processes with "ps -ef" on OpenSolarisBrad King2009-12-011-1/+2
| | | | | | | | | In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on OpenSolaris by using "ps -ef" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*s %d %d %*[^\n]\n
* KWSys: Use "ps -Af" for process list on QNXBrad King2009-12-011-0/+3
| | | | | | | | | In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on QNX using "ps -Af" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*d %d %d %*[^\n]\n
* KWSys Nightly Date StampKWSys Robot2009-11-301-2/+2
|
* libarchive: Remove unused STDC_HEADERS try_runBrad King2009-11-307-95/+0
| | | | | This was the only try_run() in libarchive, and the result was not used in the source code. We remove it to allow cross-compiling to work.
* Don't allow -G -M on CUDA versions less than 3.0.James Bigler2009-11-301-1/+15
|
* CTest: Test process tree kill on timeoutBrad King2009-11-305-3/+34
| | | | | | | | | | | We extend the CTestTestTimeout test to check that when a test times out its children (grandchildren of ctest) are killed. Instead of running the timeout executable directly, we run it through a cmake script that redirects the timeout executable output to a file. A second test later runs and verifies that the timeout executable was unable to complete and write data to the log file. Only if the first inner test times out and the second inner test passes (log is empty) does the CTestTestTimeout test pass.
* KWSys: Fix process tree kill on 64-bit WindowsBrad King2009-11-301-1/+6
| | | | | | | | We enumerate processes to identify those whose parent is being killed so that we can recursively kill the children. Enumeration uses the Process32(First|Next) windows API functions, which accept PROCESSENTRY32 objects to be filled. This commit corrects the declaration of the entry structure to account for its size on 64-bit Windows.
* Document new timeout command line optionZach Mullen2009-11-301-0/+3
|
* Align test output for timeout condition.Zach Mullen2009-11-301-1/+1
|
* Added the --timeout option to ctest command line. This sets a global ↵Zach Mullen2009-11-303-1/+18
| | | | timeout on all tests if no more specific timeout is set on them.
* KWSys: Restore SIGSTOP/SIGKILL to end process treeBrad King2009-11-301-7/+15
| | | | | | | | | | | | | | | On UNIX systems we kill a tree of processes by performing a DFS walk of the tree. We send SIGSTOP to each process encountered, recursively handle its children, and then send SIGKILL. We once used the above approach in the past, but it was removed by the commit "Do not send both SIGSTOP and SIGKILL when killing a process". The commit was meant to work-around an OS X 10.3 bug in which the child would not always honor SIGKILL after SIGSTOP. At the time we wrongly assumed that the process tree remains intact after SIGKILL and before the child is reaped. In fact the grandchildren may be re-parented to ppid=1 even before the child is reaped, which causes the DFS walk to miss them.
* Singly-quote target names for Watcom linkerBrad King2009-11-302-4/+14
| | | | | | | 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.
* Cleanup CMakeBuildTest in test_clean targetBrad King2009-11-301-0/+1
| | | | | The test_clean target is supposed to remove all test build directories. We add the build directory for CMakeBuildTest because it was missing.
* KWSys Nightly Date StampKWSys Robot2009-11-291-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-281-1/+1
|
* CPackRPM:: Fix bug on Open SuSE 11.2 coming from initial fix of bug8972Eric Noulard2009-11-281-5/+18
| | | | Eric
* KWSys Nightly Date StampKWSys Robot2009-11-271-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-261-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-251-1/+1
|
* BUG 9969: document set_tests_properties TIMEOUT property.Zach Mullen2009-11-251-0/+2
|
* KWSys Nightly Date StampKWSys Robot2009-11-241-1/+1
|
* Fix for bug #9965 -i was not passed to -E commands.Bill Hoffman2009-11-241-1/+1
|
* Mac has gettimeofday defined, but cmsys wasn't aware of that, so it was ↵Zach Mullen2009-11-241-1/+1
| | | | falling back to using time() which only provides second resolution. Fixed to allow usec res.
* Improve fake $HOME test isolation codeBrad King2009-11-242-6/+10
| | | | | | | | | | | | | The commit "Fake $HOME to isolate tests from user" started setting $HOME in the CTest script environment. On some platforms tests depend on some local configuration in the home directory, such as the "cvs login" for KWSys in CTestTest3. In this commit we now construct a fake home dir during CMake config step and populate it with a .cvspass file needed by the test. We also check CTEST_NO_TEST_HOME to optionally disable the test home. See issue #9949.
* BUG 9961: ctest --help should not display a Generators sectionZach Mullen2009-11-243-1/+11
|
* Test CMP0015 OLD and NEW link_directories behaviorBrad King2009-11-246-0/+67
| | | | | We create a LinkDirectory test to check that the policy OLD and NEW behaviors work as documented. See issue #9697.