summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmake: initialize with Role that controls which commands to registerDaniel Pfeifer2017-05-081-1/+1
|
* QtDialog: add reference in foreachDaniel Pfeifer2017-05-051-2/+2
|
* cmState: Move CacheEntryType enum to separate namespaceStephen Kelly2016-10-191-13/+13
| | | | Port dependent code to the change.
* Simplify CMake per-source license noticesBrad King2016-09-271-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-139/+95
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* cmake-gui: Add options to control warning-as-error messagesMichael Scott2016-01-121-0/+20
| | | | | Add new widgets to the warning messages dialog to control treating warnings as errors.
* cmake-gui: Add options to control warning messagesMichael Scott2015-12-101-3/+15
| | | | | | | | | Create a new dialog window for the cmake-gui that provides controls for setting the state of suppression of developer and deprecated warning messages. This replaces the previous single checkbox for setting the state of suppression of developer warnings. Added a note for the new functionality to the release notes.
* cmake-gui: Add option to specify generator toolsetRobert Dailey2015-11-171-9/+27
| | | | | | | | | | The -T parameter to CMake may now be specified through cmake-gui via a new text field in the first-time configure wizard (below the generator chooser). The generator factories specify whether or not they support toolsets. This information is propagated to the Qt code and used to determine if the selected generator should also display the optional Toolset widgets.
* cmake: Remove redundant start directories.Stephen Kelly2015-04-201-2/+0
| | | | | | | | | They are maintained as containing the same content as the 'home' directories, but they are never read from. Fix some comments and help strings which confused the two by name. They actually mean what is called CMAKE_SOURCE_DIR in cmake code.
* cmState: Move CacheEntryType enum from cmCacheManager.Stephen Kelly2015-04-131-15/+15
|
* Port to cmState.Stephen Kelly2015-04-131-18/+18
|
* Port QtDialog to non-iterator cache API.Stephen Kelly2015-04-081-32/+40
|
* cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.Stephen Kelly2015-04-071-1/+2
| | | | | Being initialized is a requirement for this method to return something, and is what differentiates it from using GetIterator with it.GetValue.
* Add API for cache loading, deleting and saving to the cmake class.Stephen Kelly2015-04-071-5/+5
| | | | | Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
* Revert topic 'refactor-cache-api'Brad King2015-04-071-47/+38
| | | | | | This topic was never tested without some follow-up commits. The GetCacheEntryValue API returns a pointer to memory freed on return. It will have to be revised along with the rest of the original topic.
* Port QtDialog to non-iterator cache API.Stephen Kelly2015-04-061-32/+40
|
* cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.Stephen Kelly2015-04-061-1/+2
| | | | | Being initialized is a requirement for this method to return something, and is what differentiates it from using GetIterator with it.GetValue.
* Add API for cache loading, deleting and saving to the cmake class.Stephen Kelly2015-04-061-5/+5
| | | | | Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
* cmake-gui: Reset generator platform and toolset on configure (#15411)Brad King2015-02-191-0/+2
| | | | | | | | At the start of each configure step we already reset the generator selection (CMAKE_GENERATOR) to match that loaded for the current project. Add missing code to reset the generator platform and toolset (CMAKE_GENERATOR_PLATFORM and CMAKE_GENERATOR_TOOLSET) also so that they do not leak across projects.
* cmake-gui: Capture cmSystemTools::Stdout and StderrBrad King2014-05-151-0/+16
| | | | | | Output sent through these APIs is logically part of the CMake process output. Capture it with callbacks and display it in the cmake-gui output window along with other messages.
* cmSystemTools: Rename ErrorCallback to MessageCallbackBrad King2014-05-151-3/+3
| | | | | Clarify that it is the callback for the cmSystemTools::Message API. Rename callback clients too.
* cmake-gui: Fix handling of missing CMAKE_EXTRA_GENERATOR (#14804)Brad King2014-03-121-1/+1
| | | | | | | Since commit 1a1b737c (stringapi: Use strings for generator names, 2014-02-24) cmExternalMakefileProjectGenerator::CreateFullGeneratorName expects a std::string instead of const char*. When no extra generator name is available, pass an empty string to avoid NULL dereference.
* stringapi: Use strings for cache iterator valuesBen Boeckel2014-03-081-6/+6
|
* Refactor internal resource location APIs and initializationBrad King2013-11-121-23/+2
| | | | | | | | | | | | | | | | | | | | Rename cmSystemTools::FindExecutableDirectory to FindCMakeResources. Teach it to compute the locations of cmake, ctest, cpack, ccmake, and cmake-gui executables, and the location of CMAKE_ROOT. Provide this information from static cmSystemTools::Get<resource>() methods. Refactor code that needs these locations to use the new APIs. Teach FindCMakeResources to use the OS X system API to lookup the executable location. When running from the CMake build tree itself, leave a file in the tree that FindCMakeResources can use to read the location of the source tree. This avoids the need to compile the source tree location into a binary that may be installed and used without the source tree. Teach the QtDialog on OS X to create a "cmake-gui" symlink in the build tree next to "cmake" and the other tools, as is already done in the install tree for the application bundle. This ensures a consistent set of executables are available in one directory.
* Compile with both Qt4 and Qt5.Stephen Kelly2012-08-211-0/+4
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-12/+12
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* cmake-gui: Fix code to respect current locale.Clinton Stimpson2012-07-061-41/+41
| | | | | This means non-ascii characters now work correctly on systems that have a non-ascii 8 bit encoding as the current locale.
* cmake-gui: Improve interrupt granularity to fix bug 12649.Clinton Stimpson2012-01-021-1/+12
| | | | | | | Instead of enabling interrupt only when a progress or message callback is called, add a new callback specifically for interrupt. This new callback is called from GetFatalErrorOccured() so cmake-gui can immediately report interrupt status instead of calling queuing a call to cmSystemTools::SetFatalErrorOccured() and waiting for the progress or message callback to be called to process that queued call.
* Unwatch manual variables upon removal in cmake-guiBen Boeckel2011-01-131-0/+2
|
* Don't output to stderr in the GUIBen Boeckel2011-01-031-1/+0
|
* Set a watch on variables added through the guiBen Boeckel2010-09-221-0/+2
|
* Rename flags again and use variablewatch for cliBen Boeckel2010-09-011-7/+0
|
* Add warn-unused to the Qt interfaceBen Boeckel2010-09-011-0/+14
|
* Rename strict-mode to warn-uninitializedBen Boeckel2010-09-011-5/+5
|
* Make --strict-mode option, and integrate with cmake-guiBill Hoffman2010-09-011-0/+8
|
* ENH: Move SetErrorMode around calls to generate and configure instead of ↵Clinton Stimpson2009-10-261-0/+21
| | | | setting it for the whole application.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Patch from Alexander Neundorf to remove "KDevelop3" from list of ↵Clinton Stimpson2009-08-101-0/+9
| | | | generators. "KDevelop3 - Unix Makefiles" should be used instead.
* BUG: Fix inconsistency with lowercase drive letters on Windows.Clinton Stimpson2009-03-301-2/+6
|
* ENH: Add support for showing combo box for choosing from a list of strings ↵Clinton Stimpson2009-03-121-0/+4
| | | | that a cache property can have.
* ENH: Add cross compiling support in the GUI in the same dialog that prompts forClinton Stimpson2008-05-151-21/+21
| | | | | | | | | | the generator on the first configure. It either ask for a toolchain file or asks for all the information a toolchain file might contain. Also added option for setting non-default compilers if not cross compiling. Fixes #6849. Also a bit of code cleanup and re-organizing.
* BUG: Fix #6733. Always convert "\" to "/" in source & binary directory ↵Clinton Stimpson2008-04-071-5/+7
| | | | fields on Windows.
* ENH: Add debug output option to a new Options menu.Clinton Stimpson2008-04-021-0/+15
| | | | | Move dev warnings option to the new Options menu. Fixes #6335.
* ENH: add ability to suppress dev warnings to gui codeBill Hoffman2008-03-121-0/+7
|
* ENH: support for cpack and install of cmake-gui as mac app bundleBill Hoffman2008-02-161-2/+8
|
* ENH: remove unused code.Clinton Stimpson2008-02-151-5/+1
|
* ENH: use package name on mac for edit cacheBill Hoffman2008-02-151-0/+4
|
* ENH: Add shortcut to start search/filter.Clinton Stimpson2008-02-141-10/+14
| | | | | | | | A bit of cleanup. Disable tab navigation in cache variable list. Enable home/end keys. BUG: Ensure currently edited values are saved before doing configure.
* ENH: do not show unititialized entriesBill Hoffman2008-02-141-1/+2
|