summaryrefslogtreecommitdiffstats
path: root/Help/manual
Commit message (Collapse)AuthorAgeFilesLines
* GoogleTest: Add module to contain gtest_add_tests independentlyBradley Lowekamp2017-02-071-0/+1
| | | | | | | | | | | | Extract the `gtest_add_tests` macro from `FindGTest` into a separate module. GTest or GoogleTest can be used by a project in a several different ways, including installed libraries in the system, from an ExternalProject, or adding the GTest source directory as a sub directory of the project. As not all of these uses are supported by the FindGTest module the useful `gtest_add_tests` macro is separated to easily enable reuse. Issue: #14151
* GNU C: record that C99 is available since at least 3.4Rolf Eike Beer2017-02-021-0/+8
|
* Help: Fix language standard link text in cmake-compile-features(7)Brad King2017-02-021-2/+2
| | | | | Include each language name in the text of the link to its standards property.
* Merge topic 'doc-cmake-packages-typo'Brad King2017-02-011-2/+2
|\ | | | | | | | | f3619bbc Help: Fix typo in <pkg>_NOT_FOUND_MESSAGE example in cmake-packages(7)
| * Help: Fix typo in <pkg>_NOT_FOUND_MESSAGE example in cmake-packages(7)Brad King2017-02-011-2/+2
| | | | | | | | Fixes: #16616
* | Help: Extend documented purpose of cmake-developer(7) manualBrad King2017-02-011-1/+1
|/ | | | Issue: #16616
* Merge topic 'genex-if'Brad King2017-01-271-0/+2
|\ | | | | | | | | 895f7f16 Genex: Add `IF` generator expression
| * Genex: Add `IF` generator expressionColby Pike2017-01-261-0/+2
| | | | | | | | | | | | | | | | This allows a single condition to be used to choose between two alternatives. Without this the condition must be duplicated with one surrounded by `NOT`. Closes: #15585
* | Merge topic 'lang_lint'Brad King2017-01-252-0/+2
|\ \ | | | | | | | | | | | | 0618ddf6 Add properties to run the cpplint style checker with the compiler
| * | Add properties to run the cpplint style checker with the compilerJamie Snape2017-01-232-0/+2
| |/ | | | | | | | | | | Create a `<LANG>_CPPLINT` target property (initialized by a `CMAKE_<LANG>_CPPLINT` variable) to specify a `cpplint` style checker command line to be run along with the compiler.
* | Merge topic '16253-xcode-effective-platform-name'Brad King2017-01-241-0/+1
|\ \ | | | | | | | | | | | | 10c9c73d Xcode: Control emission of EFFECTIVE_PLATFORM_NAME
| * | Xcode: Control emission of EFFECTIVE_PLATFORM_NAMEGregor Jasny2017-01-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building with multiple SDKs within one project Xcode requires the usage of ${EFFECTIVE_PLATFORM_NAME} to put temporary and build outout into separate directories. For example an iOS device and simulator build use two different SDKs (iphoneos and iphonesimulator). In the past cmake tries to detect embedded toolchains that could possibly use simulators and emitted EFFECTIVE_PLATFORM_NAME (EPN) at the proper locations. In #16253 Mark noticed that if he uses macosx and iphoneos in combination the necessary EPN is not emitted. This is because CMake by default assumes macosx SDK which does not trigger EPN emission. The fist naive approach - enabling EPN unconditionally revealed that then the EPN leaks into generator expressions like $<TARGET_FILE:xxx> which might be a regression and thus is unacceptable. The next approach was to add an CMake property to enable EPN emission unconditionally. This solved the reported problem. But the EPN leakage also happened for the embedded toolchains already without anyone noticing. So the control property was turned into a tri-state one: * No definition: EPN is activated for embedded toolchains like before * ON: EPN is always emitted * OFF: EPN is never emitted That approach gives the user the chance to disable EPN for embedded toolchains and restores generator expression functionality for those. Closes: #16253
* | | Merge topic 'csproj-improvements'Brad King2017-01-241-0/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | 4bfb1249 VS: removed usage of relative paths for C# targets in in-source builds 90cb4083 VS: improve handling of source files with special extensions in .csproj
| * | VS: improve handling of source files with special extensions in .csprojMichael Stürmer2017-01-181-0/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | Mainly <Link> and <DependentUpon> tags are added to connect generated and manually edited files. Special file extensions that are take care of are: - .Designer.cs - .xaml.cs - .settings - .resx - .xaml
* | Add a getter for manually added target dependenciesGregor Jasny2017-01-161-0/+1
|/ | | | Closes: #16165
* VS: renamed target property VS_USER_PROPS_CXX to VS_USER_PROPSMichael Stürmer2017-01-131-1/+1
|
* Merge topic 'add-cpack-ifw-configure-file'Brad King2017-01-121-0/+1
|\ | | | | | | | | 6310f7c3 Add cpack_ifw_configure_file command
| * Add cpack_ifw_configure_file commandKonstantin Podsvirov2017-01-111-0/+1
| |
* | AUTOGEN: Documentation update: cmake-qt, AUTOMOC, AUTOUIC, AUTORCCSebastian Holtermann2017-01-111-0/+9
| |
* | AUTOGEN: Documentation for SKIP_AUTOX source file propertiesSebastian Holtermann2017-01-101-0/+4
|/
* VS: add support for .NET references with hint pathsMichael Stürmer2016-12-131-0/+2
|
* Merge topic 'document_cuda_standard_property'Brad King2016-12-123-0/+12
|\ | | | | | | | | 45054119 Help: Document CUDA_STANDARD and related properties
| * Help: Document CUDA_STANDARD and related propertiesRobert Maynard2016-12-093-0/+12
| |
* | Merge topic 'xcode-message-extension'Brad King2016-12-121-0/+2
|\ \ | |/ |/| | | | | | | | | 9ac0c393 Help: Add notes for topic 'xcode-message-extension' 0ae46321 Xcode: Add target property to override explicitFileType 7ecac703 Xcode: Add target property to override productType
| * Xcode: Add target property to override explicitFileTypeGregor Jasny2016-12-031-0/+1
| |
| * Xcode: Add target property to override productTypeGregor Jasny2016-12-031-0/+1
| |
* | Merge topic 'try_compile-lang-std'Brad King2016-12-071-0/+8
|\ \ | | | | | | | | | | | | | | | | | | f72ba42b try_compile: Add policy CMP0067 to honor language standards 45aa03b9 try_compile: Add options to specify language standards 3bb2051e try_compile: Stop processing when test build system fails to generate
| * | try_compile: Add policy CMP0067 to honor language standardsBrad King2016-12-061-0/+8
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Projects use `try_compile` to check if they will be able to compile some particular source code. When a language standard variable like `CMAKE_CXX_STANDARD` is set, then the project intends to compile source code using a compiler mode for that standard. Therefore it makes sense for `try_compile` to use that standard in the test project too. Unfortunately this was not done when support for the `CMAKE_CXX_STANDARD` variable was first implemented. Add a policy to introduce the improved behavior in a compatible way. Closes: #16456
* | QtAutogen: CMake-Qt documentation updateSebastian Holtermann2016-12-071-9/+14
|/
* VS: Add target property VS_DEBUGGER_WORKING_DIRECTORYMichael Stürmer2016-11-301-0/+1
|
* Merge topic 'msbuild-customization'Brad King2016-11-301-0/+1
|\ | | | | | | | | e3909918 VS: Add option to customize vcxproj user props file
| * VS: Add option to customize vcxproj user props fileMichael Stürmer2016-11-291-0/+1
| | | | | | | | | | | | Add a `VS_USER_PROPS_CXX` target property to set the user props file of the generated `.vcxproj` file to be something other than the default `$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props`.
* | Merge topic 'vs15-rename-generator-for-master'Brad King2016-11-301-1/+1
|\ \ | | | | | | | | | | | | | | | 31e013ae Merge branch 'vs15-rename-generator' into vs15-rename-generator-for-master d639620e VS: Rename VS 15 generator to 'Visual Studio 15 2017'
| * \ Merge branch 'vs15-rename-generator' into vs15-rename-generator-for-masterBrad King2016-11-291-1/+1
| |\ \
| | * | VS: Rename VS 15 generator to 'Visual Studio 15 2017'Roman Wüger2016-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The final name of this VS version was announced: https://blogs.msdn.microsoft.com/visualstudio/2016/11/16/visual-studio-2017-rc/ Add the year to the generator name accordingly. For convenience, map the name without the year to the name with the year.
| | * | Android: Add CMAKE_<LANG>_ANDROID_TOOLCHAIN_MACHINEBrad King2016-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose the binutils' machine name (typically used as a prefix on the tool names) publicly. This is expected to match the `gcc -dumpmachine` value. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
| | * | Android: Add CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG variableBrad King2016-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NDK provides prebuilt toolchain files in directories named for the host architecture. The NDK build system calls this `HOST_TAG`. Expose the value publicly for use by clients that need to pass it to external tools. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
| | * | Android: Always set CMAKE_ANDROID_NDK_TOOLCHAIN_VERSIONBrad King2016-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this variable is not set by the user or toolchain file, set it to the default selected. This will be useful for client code that needs to pass the value to an external tool that needs to find the same toolchain in the NDK. Leave it empty for a standalone toolchain. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
* | | | Merge topic 'vs-default-build-package'Brad King2016-11-291-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 9e3164df VS: Add option to place `PACKAGE` target in solution default build
| * | | | VS: Add option to place `PACKAGE` target in solution default buildMichael Stürmer2016-11-291-0/+1
| | |_|/ | |/| | | | | | | | | | | | | | Add a `CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD` variable to control this behavior.
* | | | Merge topic 'initial_cuda_language_support'Brad King2016-11-291-0/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4cc601f2 Help: Add release note for CUDA support 7b9131da CUDA: Add tests to verify CUDA compiler works properly. 9cf5b98d CUDA: Prefer environment variables CUDACXX and CUDAHOSTCXX. a5e806b3 CUDA: Add support for CMAKE_CUDA_COMPILE_OPTIONS_VISIBILITY d038559e CUDA: Add separable compilation support to the makefile generator. 43ce4414 CUDA: Add separable compilation support to the ninja generator. 4b316097 CUDA: Add support for the CUDA_SEPARABLE_COMPILATION target property ae05fcc6 CUDA: Add LinkLineComputer that computes cuda dlink lines. 115269a8 CUDA: Refactor cmLinkLineComputer to allow for better derived children. 5dec4031 CUDA: Refactor CMakeCUDAInformation to prepare for separable compilation. 5b20d0ab CUDA: C++ compile features now enable cuda c++11 support. 489c52ce CUDA: Use the host compiler for linking CUDA executables and shared libs. bbaf2434 CUDA: add support for specifying an explicit host compiler. a92f8d96 CUDA: Enable header dependency scanning. ec6ce623 CUDA: State that cuda has preprocessor output and can generate assembly. 4f5155f6 CUDA: We now properly perform CUDA compiler identification. ...
| * | | CUDA: Add support for the CUDA_SEPARABLE_COMPILATION target propertyRobert Maynard2016-11-141-0/+1
| | | |
* | | | Merge topic 'imported-interface-no-system'Brad King2016-11-221-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 46005251 Allow NO_SYSTEM_FROM_IMPORTED on imported INTERFACE libraries
| * | | | Allow NO_SYSTEM_FROM_IMPORTED on imported INTERFACE librariesBrad King2016-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Imported INTERFACE libraries can specify include directories via `INTERFACE_INCLUDE_DIRECTORIES` so the default behavior of treating them as system include directories applies. Allow users to turn this off by setting `NO_SYSTEM_FROM_IMPORTED` on such targets. Closes: #16443
* | | | | Merge topic 'doc-CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT'Brad King2016-11-221-0/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | df9fea7f Help: Document CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT variable
| * | | | Help: Document CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT variableBrad King2016-11-211-0/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | This variable documentation was simply missing. Suggested-by: Craig Scott <craig.scott@crascit.com>
| * | | Merge branch 'doc-cmake-qt-fixes' into releaseBrad King2016-11-021-1/+1
| |\ \ \
| | * | | Help: Update example Qt 5 find_package call to add missing componentThiago M. de C. Marques2016-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running CMake on it caused the following error: error: Target "publisher" links to target "Qt5::DBus" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Add the missing DBus component.
| | * | | Help: Update example Qt 5 find_package call to use COMPONENTSMarcus D. Hanwell2016-11-021-1/+1
| | | | |
* | | | | Help: Mention IMPORTED_LIBNAME_* in interface library property whitelistBrad King2016-11-211-0/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | This property was added by commit 09cda9d5 (Allow imported INTERFACE libraries to specify a link library name, 2016-11-03) and is in the implementation's whitelist. Add it to the documentation too.