summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | | | Merge topic 'custom-command-refactor'Brad King2010-12-2113-144/+137
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 53ea8b3 Merge branch 'imported-target-dependencies' into custom-command-refactor 1a29cca Remove cmLocalGenerator::GetRealLocation 542b517 Factor out common custom command generator 6fe5b3d Simplify VS generator ConstructScript interface
| * | | | Merge branch 'imported-target-dependencies' into custom-command-refactorBrad King2010-12-082-9/+49
| |\ \ \ \
| * | | | | Remove cmLocalGenerator::GetRealLocationBrad King2010-12-083-24/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cmCustomCommandGenerator::GetCommand method completely replaces the purpose of this method. Re-implement GetRealLocation inline at the only remaining call site and remove it.
| * | | | | Factor out common custom command generatorBrad King2010-12-087-76/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Makefile, VS, and Xcode generators previously duplicated some custom command line generation code. Factor this out into a separate class cmCustomCommandGenerator shared by all generators.
| * | | | | Simplify VS generator ConstructScript interfaceBrad King2010-12-085-47/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass to cmLocalVisualStudioGenerator::ConstructScript a cmCustomCommand instance instead of extracting arguments at all call sites.
* | | | | | Merge topic 'ctest-git-send-committer'Brad King2010-12-213-22/+43
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5992526 CTest: Factor out duplicate Git author/committer code 307b8a6 CTest git update should pass the committer as well as the author
| * | | | | | CTest: Factor out duplicate Git author/committer codeBrad King2010-12-201-44/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor out date/time format code into FormatDateTime function instead of duplicating it.
| * | | | | | CTest git update should pass the committer as well as the authorZach Mullen2010-12-203-0/+37
| | | | | | |
* | | | | | | Merge topic 'fix_docs_for_language_property'Brad King2010-12-211-1/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | afbfb7a Add more documentation for LANGUAGE property.
| * | | | | | | Add more documentation for LANGUAGE property.Bill Hoffman2010-12-201-1/+3
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Make it clear that if you set the language on a file, it will be compiled.
* | | | | | | Merge topic 'vs2010_header_only_fix'Brad King2010-12-213-2/+10
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f578381 Fix vs2010 project generation error when HEADER_FILE_ONLY is set.
| * | | | | | | Fix vs2010 project generation error when HEADER_FILE_ONLY is set.Bill Hoffman2010-12-203-2/+10
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In vs2010 a bad project file could be generated if a .c or .cxx file was marked with HEADER_FILE_ONLY, if it was in a library that contained both c and c++ code. This fixes the error in the code, and adds a test for this case.
* | | | | | | Merge topic 'vs10-sln-msbuild-workaround'Brad King2010-12-213-10/+18
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e1442ac Avoid msbuild ".\" idiosyncrasy that builds multiple configs (#11594) 42a2e9d Revert "Avoid msbuild idiosyncrasy that builds multiple configs" (#11633) 2c2eee6 Revert "Remove unused parameter "root" in some VS generator methods"
| * | | | | | | Avoid msbuild ".\" idiosyncrasy that builds multiple configs (#11594)Brad King2010-12-202-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a .sln file refers to a project file with a leading ".\", as in ".\foo.vcxproj" instead of just "foo.vcxproj" or a full path then msbuild behaves strangely. Whenever target foo is built as a dependency of another target, msbuild brings multiple configurations up to date instead of just the requested configuration! Avoid a leading ".\" in project file references to avoid this behavior. This alternative fix to that attempted by commit 57e71533 (Avoid msbuild idiosyncrasy that builds multiple configs, 2010-12-10) avoids use of full path project file references which vcbuild does not support.
| * | | | | | | Revert "Avoid msbuild idiosyncrasy that builds multiple configs" (#11633)Brad King2010-12-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 57e71533f45601275afd7787d763664f9e6b9536. While "msbuild" can handle full paths to project files in solutions, the old "vcbuild" used for VS < 10 cannot. We will need another way to fix issue #11594.
| * | | | | | | Revert "Remove unused parameter "root" in some VS generator methods"Brad King2010-12-203-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 10f01ae962feb68177f7bd698b01bbc18668920c.
* | | | | | | | Merge topic 'always_enable_generate'Brad King2010-12-214-51/+146
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3f158c6 cmake-gui: always enable generate button.
| * | | | | | | | cmake-gui: always enable generate button.Clinton Stimpson2010-12-184-51/+146
| | | | | | | | |
* | | | | | | | | Merge topic 'fix-11487-multiple-test-calls'Brad King2010-12-211-0/+2
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 744366f CTest: multiple ctest_test calls w/LABEL regexs (#11487)
| * | | | | | | | | CTest: multiple ctest_test calls w/LABEL regexs (#11487)Clinton Stimpson2010-12-171-0/+2
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Initialize method was not re-initializing everything that it should have been. This commit fixes that.
* | | | | | | | | Merge topic 'fix-10587-avoid-try-compile-warnings'Brad King2010-12-211-8/+6
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 984acc8 VS10: avoid warning, no nologo when verbose (#10587)
| * | | | | | | | | VS10: avoid warning, no nologo when verbose (#10587)David Cole2010-12-171-8/+6
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For prior versions of Visual Studio we would intentionally pass "/nologo-" for "verbose makefiles" (CMAKE_VERBOSE_MAKEFILE ON) when the caller did not already explicitly specify either /nologo or /nologo-. And we still do. For the prior versions. This had the side effect of always passing /nologo- for try_compile operations because try_compile generates projects that have verbose makefiles on. However, starting with Visual Studio 10, the compiler emits "cl ... warning D9035: option 'nologo-' has been deprecated" when passed "/nologo-". Therefore, this commit removes setting "/nologo-" for verbose makefiles in the Visual Studio 10 case to avoid emitting a warning for every single invocation of the compiler in a given build. With Visual Studio 10, we do not set this flag either way and therefore, the generated project has no value for this setting and gets Visual Studio's default value, which is of course "/nologo", which does not produce a warning. With Visual Studio 10, a caller can still force "/nologo-" if desired by adding it explicitly to CMAKE_C_FLAGS or CMAKE_CXX_FLAGS.
* | | | | | | | | Merge topic 'fix-8210-find-makensis-in-path'Brad King2010-12-211-9/+23
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd9aa73 CPack: look for makensis in the PATH (#8210)