| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
6ffc4323 cmConditionEvaluator: Fix matching of `CMAKE_MATCH_*` values (#15944)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While evaluating `if(MATCHES)` we get a `const char*` pointer to the
string to be matched. On code like
if(CMAKE_MATCH_COUNT MATCHES "Y")
the string to be matched may be owned by our own result variables.
We must move the value to our own buffer before clearing them.
Otherwise we risk reading freed storage.
|
|/
|
|
|
|
|
|
| |
The add_custom_command(TARGET) signature only works for targets defined
in the current directory. Clarify this in the error message when the
target exists but was defined elsewhere.
Inspired-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
|
|\
| |
| |
| |
| | |
f98ae28e Tests: Cover fltk_wrap_ui on an executable that links libraries
|
| |
| |
| |
| |
| |
| |
| | |
CMake 3.4 may crash on this case. The problem seems to have been
fixed since then, but keep it working by adding a test case now.
Reported-by: Gonzalo Garramuño <ggarra13@gmail.com>
|
|\ \
| | |
| | |
| | |
| | | |
9b08c623 FindPNG: Create an imported PNG::PNG target (#15911)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Imported targets are now the recommended way of dealing with external
library dependencies. Add one for FindPNG and update documentation
accordingly. Also add a test case activated by CMake_TEST_FindPNG.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
40249bcc FindPkgConfig: set standard variables in the cache
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes a regression introduced when the code was simplified to use the
variable queries.
Fixes #15903.
Reported-by: Bernd Lörwald
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
f9e45ab9 FindXalanC: New module to find the Apache Xalan-C++ library
|
| | | | |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since this command was introduced in 2002 it has incorrectly constructed
the child process command line by concatenating arguments separated by
spaces with no quoting. Fix this by passing the command argument vector
directly to RunSingleCommand without an intermediate quoting and
re-parsing step.
Reported-by: Andrey Pokrovskiy <wonder.mice@gmail.com>
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
77cd74a3 Print line number of cache parse errors (#11109)
|
| | |/
| |/|
| | |
| | |
| | | |
Track the line number while parsing `CMakeCache.txt` files and include
it in a parse failure error message.
|
|/ /
| |
| |
| | |
Preserve semicolons in the value.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The target_link_libraries command records the PRIVATE dependencies of a
STATIC library in INTERFACE_LINK_LIBRARIES as "$<LINK_ONLY:dep>". This
hides the target name from export namespacing logic inside a generator
expression. When user-written generator expressions reference a target
name they must put it inside a "$<TARGET_NAME:dep>" expression to allow
the export logic to rename the target. In the case that the private
dependency is not already a generator expression, target_link_libraries
must use "$<LINK_ONLY:$<TARGET_NAME:dep>>" to allow the export logic to
rename the target.
Reported-by: Tamás Kenéz <tamas.kenez@gmail.com>
|
| | |
|
|/
|
|
| |
Use cmake_policy(PUSH/POP) to isolate CMP0022 policy changes.
|
|\
| |
| |
| |
| | |
630c8aa8 install: Allow generator expressions in DIRECTORY
|
| |
| |
| |
| |
| | |
Teach install(DIRECTORY) to support generator expressions in the list
of directories, much like install(FILES) already supports.
|
|/
|
|
|
|
|
|
|
| |
Expand the -W set of cmake options to include support for the -Werror
and -Wno-error format, which is used to control upgrading and
downgrading warning and error messages. Implement support for these new
formats for the dev and deprecated message types.
Add tests and updated documentation for new options.
|
|\
| |
| |
| |
| |
| |
| |
| | |
fae47798 Utilities/Release: Configure Windows binary to support Windows XP
083312a8 Utilities/Release: Switch to .msi builder for Windows binary
240b065f Utilities/Release: Optionally load environment on remote build server
a95b4715 Utilities/Release: Add optional remote launcher to ssh calls
|
| |
| |
| |
| |
| | |
Use a new build machine to produce the Windows binary using the CPack
WiX generator to produce a `.msi` installer.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
d8bc26a0 Xcode: Parse variant and genex for CMAKE_XCODE_ATTRIBUTE (#14947)
dc0ddb9e Xcode: Store configuration name along with XcodeObject (#14947)
28f98cee Xcode: Make CMAKE_XCODE_ATTRIBUTE calculation last step (#14947)
28db2268 Xcode: Factor out XCODE_ATTRIBUTE_ variant filter (#14947)
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | | |
ba39d7e9 Xcode: Escape all backslashes in strings (#15328)
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Before this change backslashes in strings were escaped during compile
flags adds via AppendFlag(). But global flags like OTHER_CPLUSPLUSFLAGS
are not added as flags but as plain strings so they were not escaped
properly.
Now the escaping is performed within cmXCodeObject::PrintString() which
ensures that strings are always encoded.
|
|/ |
|
|
|
|
|
|
| |
The behaviour of double specified keywords is rather undefined or at
least not clearly documented. This change introduces a strict check and
emits a warning in case a keyword has been specified more than once.
|
|
|
|
|
|
|
| |
Implement a native `cmake_parse_arguments` command that is fully
compatible with the documented behaviour of the previous implementation.
Leave the CMakeParseArguments module empty but existing for
compatibility.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
f0b5ce7f Help: Add notes for topic 'FindGTest-imported-targets'
99afe235 Tests: Add tests for FindGTest
611735e7 FindGTest: Add imported targets and update documentation
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
565d080a Xcode: Add support for combined install on iOS
34f5ef56 iOS: Fix App Bundle layout
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch solves the problem of installing both: Device and Simulator
libraries on iOS. Before only one of them was installed.
If the IOS_INSTALL_COMBINED property is set on a target, a
special install hook will be activated which builds the corresponding
target and combines both at the install location.
The original patch was contributed by Ruslan Baratov, and polished by
Gregor Jasny.
|
|\ \
| | |
| | |
| | |
| | | |
972849fb Tests: Simplify CTest.UpdateGIT repo path construction
|
| |/
| |
| |
| |
| |
| |
| | |
Avoid constructing full paths to .git repositories in the test. Use
relative paths and let Git convert them to absolute paths internally.
This is simpler and also avoids trouble with various absolute path root
component conventions on Windows (`c:/`, `/c/`, `/cygdrive/c/`).
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| | |
bc35087d cmake: Teach -E copy_directory to support multiple input directories
98be140f cmake: Refine -E copy[_if_different] documentation
93cc80ae cmake: Refine -E copy_if_different implementation indentation
0903812b cmake: Refine -E chdir documentation
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
ebaca629 FindTIFF: Add imported targets and update documentation
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Add TIFF::TIFF imported target
- Document imported target
- Add testcase to test the standard variables and the imported
target
Also:
- Add TIFF_INCLUDE_DIRS to match common practice
- Update documentation generally, including documenting
TIFF_INCLUDE_DIRS
|
| |
| |
| |
| |
| |
| | |
If multiple input files are provided then the destination must be a
directory. If only one input file is provided then destination may be
either a file or directory.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
7a327727 Embarcadero: Fix erroneous interpretation of __CODEGEARC_VERSION__.
25211d75 Compiler ID: Compiler versions must be a valid, numeric version string.
060442c2 Embarcadero: Check code using CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID.
f3b3219c Embarcadero/Watcom: Properly skip VSResource test for other generators.
ddbda722 Embarcadero: Fix bug where duplicate Ninja job pools would be created.
|
| | |
| | |
| | |
| | | |
This test helps catch errors in compiler identification.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID variables are set to
"Borland" for older versions of the compiler. Newer CodeGear/Embarcadero
compilers will have those variables set to "Embarcadero". Search for lines of
code referencing both the variable name and Borland to be sure that they also
refer to Embarcadero.
|
| |/
| |
| |
| |
| | |
This test should be skipped based on the chosen compiler, not the chosen
generator.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
d60cef77 Help: Add notes for topic 'FindBoost-imported-targets.rst'
9fd98750 Tests: Add FindBoost testcase for imported targets
3f9b081f FindBoost: Add imported targets
01c80acd FindBoost: Automatically add missing component dependencies
5183c6e5 FindBoost: Embed component dependency table
8a60e696 Utilities: Add BoostScanDeps script
|