| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Allow projects to use `if(ANDROID)` to condition their Android-specific
code paths.
|
|
|
|
|
|
|
| |
Populate standard include directories and link libraries for the
platform. Select the STL corresponding to CMAKE_ANDROID_STL_TYPE and
matching the current ABI and toolchain to be used. Refer to the NDK
sources/cxx-stl/*/Android.mk files for the needed file locations.
|
|
|
|
|
| |
Initialize the CMAKE_{C,CXX}_FLAGS{,_<CONFIG>} cache entries with
flags for each ABI as specified by NDK toolchain `setup.mk` files.
|
|
|
|
|
|
| |
Android NDK builds are always `debug` or `release`. We may populate
flags for these configurations that are needed to produce compatible
binaries. Ensure they are used by default.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The Android NDK source repository at
https://android.googlesource.com/platform/ndk.git
has `<ndk>/build/core/toolchains/*/setup.mk` files that store tables of
information for their build system. Add an equivalent file for each
compiler/abi combination.
|
|
|
|
|
|
|
|
|
| |
Commonly used Android toolchain files that pre-date CMake upstream
support may need to be updated to work with our new functionality.
They typically set CMAKE_SYSTEM_VERSION to 1, so detect that and
skip our upstream Android settings. When such toolchain files are
updated to account for our upstream support, they can then set
CMAKE_SYSTEM_VERSION to a valid Android API and get new behavior.
|
|
|
|
|
|
| |
Commonly used Android toolchain files that pre-date CMake upstream
support use a few environment and CMake variables as search locations.
Use them too to aid transition.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Compute CMAKE_SYSROOT automatically for the current API and architecture
selection. This causes the --sysroot option to be passed to GNU and
Clang compilers.
|
|
|
|
|
| |
Add new CMakeSystem.cmake entries for the architecture and ABI.
Store the processor in CMAKE_SYSTEM_PROCESSOR.
|
|
|
|
|
|
| |
Store the Android API level in CMAKE_SYSTEM_VERSION. If it is not
provided by the user, initialize it from CMAKE_ANDROID_API or fall back
to finding the latest available in the NDK.
|
|
|
|
| |
Add a new CMakeSystem.cmake entry for the NDK location.
|
|
|
|
|
|
| |
Support for NVIDIA Nsight Tegra Visual Studio Edition was previously
implemented in the CMake VS IDE generators. Avoid interfering with
that functionality for now. Later we may try to integrate this.
|
|
|
|
|
| |
Add infrastructure modules to be loaded when initializing builds
targeting Android platforms.
|
|
|
|
|
| |
Add infrastructure modules to be loaded for determining a compiler
selection when targeting Android platforms.
|
|
|
|
|
| |
Add infrastructure modules to be loaded for Clang and GNU compilers
when targeting Android platforms.
|
|
|
|
|
|
| |
Provide a way for Platform/<os>-Determine-<lang>.cmake modules to save
platform-specific information about the compiler in the configured
CMake<lang>Compiler.cmake modules.
|
|
|
|
|
|
|
|
|
|
|
| |
Once CMAKE_SYSTEM_NAME is known, load a platform-specific
Platform/<os>-Determine
module in order to enable custom determination of the other settings
needed for the CMakeSystem module (e.g. CMAKE_SYSTEM_PROCESSOR). Also
add a hook in Modules/CMakeSystem.cmake.in to allow platform-specific
information to be saved.
|
|\
| |
| |
| |
| | |
93ac2a78 Xcode: Obey SYSTEM keyword for includes (#15687)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
CMake used to put all header search paths into HEADER_SEARCH_PATHS
attribute. Unfortunately this attribute does not support to declare
a search path as a system include.
As a hack one could add a -isystem /path to the cflags but then include
ordering is not deterministic. A better approach was chosen with this
patch by not filling HEADER_SEARCH_PATHS at all and to populate
the C, C++, and Fortran flags directly. The include paths used by
Xcode should be now identical to the ones used by Unix Makefiles and
Ninja generator.
|
|/
|
|
|
|
|
|
|
| |
The Numerical Algorithms Group (NAG) Fortran compiler documents -PIC for
position-independent code and does not have a separate option for PIE.
We added `-PIC` for PIC in commit v2.8.11~174^2 (NAG: Use -PIC for
Fortran position-independent code, 2013-02-18). Follow up for PIE.
Closes: #16236
|
|\
| |
| |
| |
| |
| | |
551b4c90 Revert the use of string(APPEND) in .cmake.in files
3a7be4f3 prefer list(APPEND) over string(APPEND) where appropriate
|
| |
| |
| |
| |
| | |
The generated files may be consumed by older cmake versions which do not
support string(APPEND).
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
5f3c8f6a GetPrerequisites: Always filter objdump output as text
|
| |/
| |
| |
| |
| |
| | |
When using `grep` to filter the output, add the `-a` flag to tell
it never to treat the output as binary. Otherwise when LANG != C
in the environment the non-ascii text may break the filter.
|
|\ \
| |/
|/|
| |
| | |
17bbf6af CPackWIX: Implement new CPACK_WIX_SKIP_PROGRAM_FOLDER feature
|
| |
| |
| |
| |
| | |
The new variable allows setting of a custom absolute installation prefix
outside of the ProgramFiles folders.
|
|\ \
| | |
| | |
| | |
| | | |
e52302d6 CrayLinuxEnvironment: Add alternative methods to get version info
|
| | |
| | |
| | |
| | | |
Closes: #16229
|
| |/
|/|
| |
| | |
The original patch was provided by jerry <jerry.c.t@web.de>.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Find modules only detect Debug and Release configurations. All other
configurations will fall back to the configuration listed as the first
entry in `IMPORTED_CONFIGURATIONS`. Switch the order so that `Release`
is listed first, as this is a better fallback than `Debug` for the
`RelWithDebInfo` and `MinSizeRel` configurations. See issue #16091.
This approach is recommended by documentation in `cmake-developer(7)`
added by commit v3.2.0-rc1~286^2~1 (Help: Document IMPORTED_CONFIGURATIONS
target property for Find modules, 2014-12-04).
|
|\ \
| | |
| | |
| | |
| | | |
9970cdcb CMakeFindFrameworks: Allow custom framework locations
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Read a variable to get non-standard locations to be searched,
e.g. brew, port.
Signed-off-by: David Keller <david.keller@litchis.fr>
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
85e03142 GNU: Use -fvisibility on GCC 4.0 and 4.1 too
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
This flag is needed for the `<LANG>_VISIBILITY_PRESET` target property.
It has been supported since GCC 4.0, not 4.2 as we previously recorded.
Fixes #16222.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
5790d9b6 FindProtobuf: Restore support for PROTOBUF_IMPORT_DIRS
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
Support was accidentally dropped by commit v3.6.0-rc1~273^2
(FindProtobuf: Rename variables to match case of module name,
2016-03-01).
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
56539d89 SCO_SV: Enable so filename versioning
16a3a735 cmELF: Port to SCO OpenServer 5.0.7/3.2
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | | |
Take changes used by pkgsrc [1]:
* so filename versioning requires CMAKE_SHARED_LIBRARY_SONAME_C_FLAG.
[1] http://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/cmake/patches/
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
52aecc0c ExternalProject: Ignore macOS .DS_Store files in tarball extraction
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Do not consider a top-level `.DS_Store` file when deciding whether a
tarball contains exactly one directory whose contents should be used as
the resulting top-level of the extraction.
Fixes #16218.
Suggested-by: Patrice Kouame
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
e29bfbf2 CPackWIX: Support custom title and description for the root feature
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
These can now be specified through the WIX generator specific
CPack variables CPACK_WIX_ROOT_FEATURE_TITLE and
CPACK_WIX_ROOT_FEATURE_DESCRIPTION.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
f4e979b1 FindCUDA: Do not look for librt on Windows
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Otherwise an incorrect warning appears when compiling with CUDA SDK 6.5
or older and CUDA_USE_STATIC_CUDA_RUNTIME is true.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
15a6ae5c FindCUDA: Add search path for nvcc on Arch
|