| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It is common to specify a CMAKE_TOOLCHAIN_FILE and get a warning
for using it despite it not being used.
The WarnUnusedCliUnused test relies on the warning being emitted
each time cmake is run on an existing build. That behavior is changed
by this patch to warn only on the first invokation of CMake, and not
on subsequent invokations (because the variable is in the cache with
the same value). For that test, a clean target is added which clears
the cache and cause the warning to be emitted each time.
As the Ninja generator does not support the feature needed to test
this, it is not tested with that generator.
|
|\
| |
| |
| |
| | |
c35961b ExternalData: Do not re-stage staged object files
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The ExternalData_LINK_CONTENT option tells ExternalData to convert real
data files it finds into content links and to "stage" the original
content in a ".ExternalData_<algo>_<hash>" file. However, after a data
object has been staged it is possible that a user-provided pattern in
the "REGEX:" option will later match the staged object file. We must
not process staged object files even when a user pattern matches them.
Fix the implementation to not match a staged object file as a normal
data file for conversion. Extend the RunCMake.ExternalData test to
cover this case.
|
|\ \
| | |
| | |
| | |
| | | |
015309f Tests/CompileDefinitions: Avoid spaces in defines on VS 6
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The VS 6 IDE does not like spaces in definition values so CMake drops
them and warns. The Tests/CompileDefinitions test C code that looks for
the dropped definitions already knows to skip them, but CMake still
warns. Silence the warnings by avoiding such values in the first place
on VS 6.
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
b983a58 file: Add GENERATE command to produce files at generate time
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The idea is to write to a temp file which contains generator
expressions, and at generate time, evaluate the generator expressions,
and write the result to a file.
Because executables on Windows are limited in the length of command line
it is possible to use, it is common to write command line arguments to a
file instead and specify the file as a source of arguments.
This new FILE(GENERATE) subcommand allows the use of generator
expressions to create such files so that they can be used with
add_custom_command for example.
|
|\ \
| | |
| | |
| | |
| | | |
7e24997 GenerateExportHeader: Generate only C identifiers as defines
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The variables in this module are used to configure a header file
with defines whose name depends on the name of the target.
As valid names of targets may be invalid for use as defines, convert
the names of the defines used to C identifiers first. This is already
done in C++ code for the DEFINE_SYMBOL property.
This is not as simple as ensuring that the BASE_NAME is a C identifier,
because most of the define names are configurable, and because use of
a BASE_NAME which is not a C identifier, such as 4square can become a
C identifier by specifying a prefix in the generate_export_header
macro.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
74f24b2 Tests/Module/GenerateExportHeader: Test exported free-function
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
bb412d0 GenerateExportHeader: Add newlines to separate the compiler output.
|
| |/ /
| | |
| | |
| | | |
Make the error logs more readable.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
3241014 Add $<LINK_LANGUAGE> generator expression
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
They can't be used when evaluating link libraries, but they can be
used for include directories and compile definitions. Later they can
be used for compile options.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
a97240b Tests/IncludeDirectories: Avoid shared library with no symbols
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The parent commit added a empty_entry_test shared library to the
IncludeDirectories test. Some toolchains fail to create a shared
library with no user-defined symbols, so provide a dummy symbol.
|
|\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
0aed09f Tests: ignore GuardMalloc messages on all Apple build, not just XCode ones
|
| | | | | |
|
|\ \ \ \ \
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
a7ba452 Add the JOIN generator expression.
96ec314 Make it possible for any genex to have arbitrary content at the end.
bd638ee Rename the method determining if a genex accepts arbitrary content.
dc742fe Extract the ProcessArbitraryContent method.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This generator expression joins a list with a separator. The separator
may contain arbitrary content, such as commas, which is ordinarily a
delimiter in the generator expression syntax.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
1a2a6ba Tests: fix build of dummy memtester on AIX
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
Both <string> and <cmSystemTools.h> include <stdio.h> one or the other way. It
looks like the CMake header adds a define that will cause another part of the
system header to be used, resulting in conflicting definitions.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
0ab50ae string: Add MAKE_C_IDENTIFIER subcommand
|
| | |_|_|/
| |/| | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
b5d6f5d Add EXPORT_NAME property.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This allows for example, the buildsystem to use names like 'boost_any'
instead of the overly generic 'any', and still be able to generate
IMPORTED targets called 'boost::any'.
|
|\ \ \ \ \
| | |_|_|/
| |/| | |
| | | | |
| | | | | |
2f84dfe include_directories: Fix handling of empty or space-only entries
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a regression introduced in commit 0d46e9a0 (Store includes
from the same include_directories call together., 2013-01-20).
Reported at
http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/46695/focus=7847
|
|\ \ \ \
| | |_|/
| |/| |
| | | |
| | | | |
05bf972 Fix handling of commas in arbitrary content in genexes.
|
| |/ /
| | |
| | |
| | |
| | | |
As the comma is the parameter separator, it needs to be re-added
when evaluating to reconstruct arbitrary content.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
ffda082 Sanitize linker name to parse implicit link line (#14154)
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | | |
Teach CMakeParseImplicitLinkInfo to convert the CMAKE_LINKER file name
to a regular expression that matches only the original name. Escape
special characters like '+' so they are not treated as regex syntax.
Extend the ImplicitLinkInfoTest to test handling of a CMAKE_LINKER value
with many special characters.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
eabefa8 Error on relative path in INCLUDE_DIRECTORIES target property.
|
| | |/
| |/|
| | |
| | |
| | | |
Add policy CMP0021 to preserve existing behavior in projects expecting
it from earlier CMake versions.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
79ec786 VS: Add Windows Forms Support
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Add support to maintain designer functionality for Visual Studio C++
Windows Forms projects. Also add a test project showing how to use
the CMakeLists.txt file and, when successfully configured, will allow
use of the designer for the included form.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
5c0f2a1 Test the use of target transitive compile definitions with moc.
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | /
| |_|/
|/| |
| | |
| | | |
6489015 Remove an endif() followed by an if() for the same condition.
e7813b1 Add a test for Qt5Automoc
27fb96b Make the QtAutomoc test compile with either Qt 4 or Qt 5
|
| | | |
|
| | |
| | |
| | |
| | | |
The same source is used as for the Qt4Automoc test.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
10bc50e Tests: ignore Guard Malloc messages in MemChecker tests
159c3e9 Tests: add a test with custom options passed to valgrind
61ddb93 CTest: fix comment documenting cmBoundsCheckerParser class
cbdfcb0 Tests: add test for non-existent Valgrind suppression file
3b5b758 CTest: drop suppression for gcc 2.9.6 errors from default Valgrind flags
7752253 Tests: verify that memory checker output files are always present
abf1df4 Tests: remove code duplication in CTestTestMemCheck tests
f499422 CTest: remove unreachable code and CTestTestMemcheckUnknown test
dde6306 CTest: use an output file for Valgrind (#14110)
bcc0f3f Tests: create output files for all memory checkers
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
All supported memory checkers now write their output to a file. Use a dummy
checker that ignores the given filename and ensure that the missing file is
reported as error.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The code for the tests is basically the same for all those subtests, so have
one template and configure that for as many tests as possible to make it
easier maintainable.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The memory checker command can't be quoted at this point, because previously it
has been tested that the given file exists, which will fail if the name is
quoted. The CTestTestMemcheckUnknown test aimed to test this case, has always
failed to do so and serves no useful purpose therefore.
|