summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'FixCrashInEclipseGenerator'Brad King2010-12-281-1/+1
|\ | | | | | | | | d18c8d6 Fix crash in Eclipse generator with empty project (#11616)
| * Fix crash in Eclipse generator with empty project (#11616)Alex Neundorf2010-12-211-1/+1
| | | | | | | | | | | | | | If there was no language at all enabled, CMAKE_BUILD_TYPE was empty, which was not expected, and made the generator crash. Alex
* | Merge topic 'mac-headerpad_max_install_names-passthru'Brad King2010-12-282-6/+6
|\ \ | | | | | | | | | | | | e498527 Pass Mac linker flag through all compilers with -Wl,
| * | Pass Mac linker flag through all compilers with -Wl,Brad King2010-12-222-6/+6
| | | | | | | | | | | | | | | | | | | | | The Mac linker defines flag -headerpad_max_install_names but not all front-ends recognize the flag and pass it through (many did in the past, such as the Apple port of GCC). Use the -Wl, option prefix to tell front-ends to pass it through without trying to interpret it.
* | | Merge topic 'dev/add_test-working-directory'Brad King2010-12-287-2/+162
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 667a90a Fix sentence break in add_test documentation 96309fc Make TestsWorkingDirectory test a C file a4a5e37 Use iostream to make Borland happy cfe53cd Fully specify the path to old-signature add_test 017d4e9 Group adding tests with its properties 561cc33 Only test the default cwd with Makefiles d87bae7 Simplify the _default_cwd derivation 992c74f Use --><-- markers to denote the path 5249551 Flip slashes around on Windows 0a014da Add ctype.h include for toupper() af12f83 Fix header includes for C++ and Visual Studio 5597aa2 Rename the project to match the test 9bf4165 Add tests for WORKING_DIRECTORY arg to add_test 42de5d0 Add WORKING_DIRECTORY argument to add_test 7679f9f Rename WorkingDirectory test d95f817 Add the WORKING_DIRECTORY property to tests
| * | | Fix sentence break in add_test documentationBrad King2010-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Commit 42de5d02 (Add WORKING_DIRECTORY argument to add_test, 2010-12-16) added a new sentence to a paragraph without separating it by " " from the previous sentence. Add the missing spaces.
| * | | Make TestsWorkingDirectory test a C fileBen Boeckel2010-12-172-11/+11
| | | |
| * | | Use iostream to make Borland happyBen Boeckel2010-12-171-4/+5
| | | | | | | | | | | | | | | | | | | | It seems as though cstdio doesn't bring in stdio.h with the Borland compilers.
| * | | Fully specify the path to old-signature add_testBen Boeckel2010-12-171-2/+2
| | | |
| * | | Group adding tests with its propertiesBen Boeckel2010-12-171-6/+4
| | | |
| * | | Only test the default cwd with MakefilesBen Boeckel2010-12-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | XCode and Visual Studio generators can run from ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE} and determining this at testing time is not feasible without adding in more PASS_REGULAR_EXPRESSION's which may create false positives. Since the parsing code is in cross-platform, generator-agnostic code, if it passes with Makefiles, it should work with other generators on other platforms.
| * | | Simplify the _default_cwd derivationBen Boeckel2010-12-171-5/+3
| | | |
| * | | Use --><-- markers to denote the pathBen Boeckel2010-12-172-7/+7
| | | |
| * | | Flip slashes around on WindowsBen Boeckel2010-12-171-0/+7
| | | |
| * | | Add ctype.h include for toupper()Ben Boeckel2010-12-171-0/+1
| | | |
| * | | Fix header includes for C++ and Visual StudioBen Boeckel2010-12-171-2/+3
| | | |
| * | | Rename the project to match the testBen Boeckel2010-12-161-1/+1
| | | |
| * | | Add tests for WORKING_DIRECTORY arg to add_testBen Boeckel2010-12-161-0/+21
| | | |
| * | | Add WORKING_DIRECTORY argument to add_testBen Boeckel2010-12-162-0/+20
| | | |
| * | | Rename WorkingDirectory testBen Boeckel2010-12-163-6/+6
| | | |
| * | | Add the WORKING_DIRECTORY property to testsRolf Eike Beer2010-12-165-1/+108
| | | |
* | | | Merge topic 'dev/use-fphsa-in-find-opengl'Brad King2010-12-281-4/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 937e369 Use FPHSA in FindOpenGL
| * | | | Use FPHSA in FindOpenGLBen Boeckel2010-12-081-4/+5
| | | | | | | | | | | | | | | | | | | | This gets FindOpenGL to obey the QUIET and REQUIRED options correctly.
* | | | | KWSys: Avoid passing string literal as char*Brad King2010-12-282-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the lpClass argument of RegCreateKeyEx as a real char[] instead of a string literal. At least one platform declares the argument as char* instead of "const char*".
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-281-1/+1
| | | | |
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-271-1/+1
| | | | |
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-261-1/+1
| | | | |
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-251-1/+1
| | | | |
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-241-1/+1
| | | | |
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-231-1/+1
| | | | |
* | | | | KWSys Nightly Date StampKWSys Robot2010-12-221-1/+1
| |_|_|/ |/| | |
* | | | Merge topic 'cygwin'Brad King2010-12-213-5/+52
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85c0a69 Cygwin: Do not define 'WIN32' (#10122) 62c6d2d Merge branch 'cmake_--system-information_min-version' into cygwin 72db20f Merge branch 'tests-if-CYGWIN' into cygwin 5adef16 Merge branch 'cygwin-module-prefix' into cygwin cbc3258 Merge branch 'try-compile-min-version' into cygwin
| * | | | Cygwin: Do not define 'WIN32' (#10122)Brad King2010-12-173-5/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of Cygwin's goals is to build projects using the POSIX API with no Windows awareness. Many CMake-built projects have been written to test for UNIX and WIN32 but not CYGWIN. The preferred behavior under Cygwin in such projects is to take the UNIX path but not the WIN32 path. Unfortunately this change is BACKWARDS INCOMPATIBLE for Cygwin-aware CMake projects! Some projects that previously built under Cygwin and are Cygwin-aware when they test for WIN32 may now behave differently. Eventually these projects will need to be updated, but to help users build them in the meantime we print a warning about the change in behavior. Furthermore, one may set CMAKE_LEGACY_CYGWIN_WIN32 to request old behavior during the transition. Normally we avoid backwards incompatible changes, but we make an exception in this case for a few reasons: (1) This behavior is preferred by Cygwin's design goals. (2) A warning provides a clear path forward for everyone who may see incompatible behavior, and CMAKE_LEGACY_CYGWIN_WIN32 provides a compatibility option. The warning and compatibility option both disappear when the minimum required version of CMake in a project is sufficiently new, so this issue will simply go away over time as projects are updated to account for the change. (3) The fixes required to update projects are fairly insignificant. Furthermore, the Cygwin distribution has no releases itself so project versions that predate said fixes tend to be difficult to build anyway. (4) This change enables many CMake-built projects that did not previously build under Cygwin to work out-of-the-box. From bug #10122: "I have built over 120 different source packages with (my patched) CMake, including most of KDE4, and have found that NOT defining WIN32 on Cygwin is much more accurate." -- Yaakov Selkowitz A fully compatible change would require patches on top of these project releases for Cygwin even though they otherwise need not be aware of it. (5) Yaakov has been maintaining a fork of CMake with this change for the Cygwin Ports distribution. It works well in practice. By accepting the change in upstream CMake we avoid confusion between the versions. CMake itself builds without WIN32 defined on Cygwin. Simply disable CMAKE_LEGACY_CYGWIN_WIN32 explicitly in our own CMakeLists.txt file.
| * | | | Merge branch 'cmake_--system-information_min-version' into cygwinBrad King2010-12-171-1/+2
| |\ \ \ \
| * \ \ \ \ Merge branch 'tests-if-CYGWIN' into cygwinBrad King2010-12-172-3/+3
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'cygwin-module-prefix' into cygwinBrad King2010-12-141-1/+1
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'try-compile-min-version' into cygwinBrad King2010-12-141-2/+3
| |\ \ \ \ \ \ \
* | \ \ \ \ \ \ \ Merge topic 'resolve/tests-if-CYGWIN'Brad King2010-12-212-3/+3
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 853de2e Merge branch 'custom-command-generator-expressions' into resolve/tests-if-CYGWIN d89e238 Cygwin: Fix tests to check CYGWIN instead of WIN32
| * \ \ \ \ \ \ \ \ Merge branch 'custom-command-generator-expressions' into resolve/tests-if-CYGWINBrad King2010-12-1729-244/+348
| |\ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests-if-CYGWIN topic made a change to Tests/Testing/CMakeLists.txt in code that the custom-command-generator-expressions topic moved to the Tests/PerConfig/CMakeLists.txt file. Make the same change to the same content in the new file. (Only a small part of the file moved so rename detection did not do this automatically.)
| * | | | | | | | | Cygwin: Fix tests to check CYGWIN instead of WIN32Brad King2010-12-172-3/+3
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use "UNIX AND NOT CYGWIN" to detect a "soname" platform. Use "WIN32 OR CYGWIN" to detect a "DLL" platform.
* | | | | | | | | Merge topic 'cmake_--system-information_min-version'Brad King2010-12-211-1/+2
|\ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | a6cb1d4 Declare min CMake version in --system-information project
| * | | | | | | | Declare min CMake version in --system-information projectBrad King2010-12-171-1/+2
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The --system-information flag's project triggered a CMP0000 warning because the CMakeLists.txt it generates needs cmake_minimum_required.
* | | | | | | | Merge topic 'custom-command-generator-expressions'Brad King2010-12-2123-63/+179
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4499d50 Mark CustomCommand test perconfig.out as SYMBOLIC f0cdb60 Introduce "generator expression" syntax to custom commands (#11209) 4749e4c Record set of targets used in cmGeneratorExpression ef9e9de Optionally suppress errors in cmGeneratorExpression 45e1953 Factor per-config sample targets out of 'Testing' test 4091bca Factor generator expression docs out of add_test bfb7288 Record backtrace in cmCustomCommand
| * | | | | | | | Mark CustomCommand test perconfig.out as SYMBOLICBrad King2010-12-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The custom command with this output does not actually create the file, so mark it as SYMBOLIC.
| * | | | | | | | Introduce "generator expression" syntax to custom commands (#11209)Brad King2010-12-157-6/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Evaluate in the COMMAND arguments of custom commands the generator expression syntax introduced in commit d2e1f2b4 (Introduce "generator expressions" to add_test, 2009-08-11). These expressions have a syntax like $<TARGET_FILE:mytarget> and are evaluated during build system generation. This syntax allows per-configuration target output files to be referenced in custom command lines.
| * | | | | | | | Record set of targets used in cmGeneratorExpressionBrad King2010-12-152-0/+7
| | | | | | | | |
| * | | | | | | | Optionally suppress errors in cmGeneratorExpressionBrad King2010-12-152-4/+7
| | |/ / / / / / | |/| | | | | |
| * | | | | | | Factor per-config sample targets out of 'Testing' testBrad King2010-12-157-31/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put the source files, build rules, and test scripts for these targets under Tests/PerConfig and refer to it from Tests/Testing as a subdirectory. The targets and scripts will be useful in other tests.
| * | | | | | | Factor generator expression docs out of add_testBrad King2010-12-153-13/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This documentation may be reused wherever generator expressions are supported.
| * | | | | | | Record backtrace in cmCustomCommandBrad King2010-12-156-9/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used to report custom command errors to the user with a backtrace pointing at the add_custom_command or add_custom_target call.