Matthäus G. Chajdas
88f2455f04
FindOpenCL: Fix search on macOS.
...
The original patch was provided by jerry <jerry.c.t@web.de>.
2016-08-08 09:57:30 -04:00
Brad King
ff386d1121
Modules: Make imported targets fall back to `Release`
...
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).
2016-08-03 11:14:29 -04:00
Brad King
c2bc47f266
Merge topic 'CMakeFindFrameworks-custom-locations'
...
9970cdcb
CMakeFindFrameworks: Allow custom framework locations
2016-08-03 09:20:56 -04:00
Brad King
aabf8772fd
Merge topic 'gcc-fvisibility-version'
...
85e03142
GNU: Use -fvisibility on GCC 4.0 and 4.1 too
2016-08-03 09:20:54 -04:00
Brad King
a85e2a89de
Merge topic 'FindProtobuf-restore-PROTOBUF_IMPORT_DIRS'
...
5790d9b6
FindProtobuf: Restore support for PROTOBUF_IMPORT_DIRS
2016-08-03 09:20:50 -04:00
Brad King
ec807f6edf
Merge topic 'port-to-sco'
...
56539d89
SCO_SV: Enable so filename versioning
16a3a735
cmELF: Port to SCO OpenServer 5.0.7/3.2
2016-08-03 09:20:47 -04:00
Brad King
ef729c5bc2
Merge topic 'ExternalProject-no-DS_Store'
...
52aecc0c
ExternalProject: Ignore macOS .DS_Store files in tarball extraction
2016-08-03 09:20:44 -04:00
Brad King
7b65e49529
Merge topic 'wix-root-description'
...
e29bfbf2
CPackWIX: Support custom title and description for the root feature
2016-08-03 09:20:38 -04:00
Brad King
8ba870bad6
Merge topic 'FindCUDA-no-windows-librt'
...
f4e979b1
FindCUDA: Do not look for librt on Windows
2016-08-03 09:20:35 -04:00
Brad King
573397bb54
Merge topic 'FindCUDA-arch'
...
15a6ae5c
FindCUDA: Add search path for nvcc on Arch
2016-08-03 09:20:32 -04:00
Brad King
16e449cc72
Merge topic 'intel-gnu11-support'
...
088f14eb
Intel-C: standard flags are also supported in 12.0
27a3ca15
Intel-C: support gnu89 and gnu99 extension flags
cc223e1e
Intel-C: declare support for gnu11
2016-08-03 09:20:25 -04:00
Brad King
a382c3013c
Merge topic 'fix-findhdf5-definitions'
...
8eb0b56c
FindHDF5: Make sure compile definition vars keep the -D flag
2016-08-03 09:20:19 -04:00
Hans Gaiser
15a6ae5cb7
FindCUDA: Add search path for nvcc on Arch
2016-08-02 15:36:07 -04:00
Ben Boeckel
088f14eb72
Intel-C: standard flags are also supported in 12.0
2016-08-02 13:10:56 -04:00
Ben Boeckel
27a3ca15e5
Intel-C: support gnu89 and gnu99 extension flags
2016-08-02 13:10:41 -04:00
Ben Boeckel
cc223e1eed
Intel-C: declare support for gnu11
...
Without extensions, functions like `strdup` are not available since they
are actually controlled by feature flags such as _SVID_SOURCE and
_BSD_SOURCE. When using `-std=c11` on Intel, none of these flags are
set, so the functions are not declared properly leading to compile
errors.
Reported-by: Adam J. Stewart <ajstewart426@gmail.com>
Closes : #16226
2016-08-02 11:42:45 -04:00
Konstantin Sinitsyn
5790d9b6f5
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).
2016-08-02 10:50:24 -04:00
David Keller
9970cdcb59
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>
2016-08-02 10:41:40 -04:00
Chuck Atkins
8eb0b56c2a
FindHDF5: Make sure compile definition vars keep the -D flag
2016-08-02 10:34:51 -04:00
Brad King
52aecc0c38
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
2016-08-02 10:14:26 -04:00
Patrick Welche
56539d89da
SCO_SV: Enable so filename versioning
...
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/
2016-08-02 10:09:52 -04:00
Brad King
85e0314201
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 .
2016-08-02 09:24:54 -04:00
Stephen Sorley
f4e979b126
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.
2016-08-02 09:15:22 -04:00
Michael Stürmer
e29bfbf272
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.
2016-08-02 14:05:08 +02:00
Brad King
5ec03c93fc
Merge topic 'wix-disabled-components'
...
ad453f05
CPackWIX: Support CPACK_COMPONENT_<compName>_DISABLED
6f108f84
CPackComponent: Document the *_HIDDEN and *_DISABLED variables
2016-08-01 14:59:53 -04:00
Daniel Pfeifer
5d0d980d99
Use string(APPEND) in Modules
...
Automate with:
find Modules -type f -print0 | xargs -0 perl -i -0pe \
's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
2016-07-28 00:41:13 +02:00
Brad King
e09518ca50
Merge topic 'nsis-protect-uninst-exec'
...
11768733
NSIS: Quote uninstaller path when executing it in a shell
2016-07-22 09:17:19 -04:00
Nils Gladitz
6f108f84d0
CPackComponent: Document the *_HIDDEN and *_DISABLED variables
2016-07-22 08:41:22 +02:00
Brad King
40d5375cf1
Merge branch 'nsis-protect-uninst-exec' into release
2016-07-21 10:08:33 -04:00
Justin Clift
11768733d3
NSIS: Quote uninstaller path when executing it in a shell
...
Protect our `$0` reference in the shell as `"$0"`. Otherwise it works
with a space in the path only due to an insecure Windows feature.
Prior to this fix, any installer using the option added by commit
v2.8.9~234^2 (Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL,
2011-06-11) exposes a local privilege escalation vulnerability.
Reported-by: Amir Szekely <kichik@gmail.com>
Reported-by: Ug_0 Security
2016-07-21 10:05:46 -04:00
Eon Jeong
ab8d5d0fdb
FindBISON: Refactor public and inner macro routines
2016-07-18 09:06:36 -04:00
Eon Jeong
c42e63a97e
FindBISON: Add REPORT_FILE option to pass --report-file=FILE
2016-07-18 09:06:31 -04:00
Eon Jeong
ad2497aa05
FindBISON: Change usage of [VERBOSE <file>] to [VERBOSE [<file>]]
2016-07-18 09:06:16 -04:00
Ben Campbell
0a6c227d64
FindGIF: Detect version from GIF 4.1.6 and above
...
GIF 4.1.6 introduced version macros in the header file. Use them
to get a full version.
Fixes #16196 .
2016-07-15 09:10:59 -04:00
Brad King
c8e59d2dfa
Merge topic 'toolchain-flag-init'
...
8a98cf64
Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files
37d15c39
MSVC: Set all CMAKE_*_LINKER_FLAGS_INIT directly
55c884ed
Embarcadero: Set all CMAKE_*_LINKER_FLAGS_INIT directly
aec3c79a
Strip CMAKE_*_LINKER_FLAGS[_<CONFIG>] initializer whitespace
2016-07-15 09:04:30 -04:00
Brad King
8a98cf6432
Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files
...
Document these variables.
Change our convention for setting these variables from:
set(CMAKE_EXE_LINKER_FLAGS_INIT "...")
to
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ...")
so that any value previously set by a toolchain file will be used.
2016-07-14 15:47:32 -04:00
Nils Gladitz
58677c327f
FindPostgreSQL: Fix initialization of PostgreSQL_LIBRARIES
2016-07-14 18:18:26 +02:00
Brad King
4e427f4949
Merge topic 'FindOpenMP-updates'
...
73e9f36e
FindOpenMP: Detect version (specification date) from compiler
8f1103c0
FindOpenMP: Cleanup all variables unconditionally
ec963f04
FindOpenMP: Improve documentation formatting
2016-07-14 09:24:14 -04:00
Brad King
6f36dce0cf
Merge topic 'ExternalData-SecurityFix'
...
9b588b2b
ExternalData: Hide security-sensitive details from output
2016-07-14 09:24:05 -04:00
Brad King
2364819d37
Merge topic 'ExternalProject-alt-urls'
...
2eec433f
ExternalProject: Add support for multiple alternative URLs
2016-07-14 09:23:50 -04:00
Brad King
f5c19a9dcc
Merge topic 'no-implicit-link-clang-rt'
...
35322226
CMakeParseImplicitLinkInfo: Exclude libclang_rt libraries
2016-07-14 09:23:35 -04:00
Brad King
37d15c399e
MSVC: Set all CMAKE_*_LINKER_FLAGS_INIT directly
...
Avoid copying CMAKE_EXE_LINKER_FLAGS_INIT to the others.
2016-07-13 15:05:32 -04:00
Brad King
55c884ed3b
Embarcadero: Set all CMAKE_*_LINKER_FLAGS_INIT directly
...
Avoid copying CMAKE_EXE_LINKER_FLAGS_INIT to the others.
2016-07-13 15:01:26 -04:00
Brad King
aec3c79acb
Strip CMAKE_*_LINKER_FLAGS[_<CONFIG>] initializer whitespace
2016-07-13 14:41:21 -04:00
Sujin Philip
73e9f36ea6
FindOpenMP: Detect version (specification date) from compiler
...
Port changes from VTK commit fda6a31cb9 (Added Improved FindOpenMP
module, 2015-04-23). Improve use of try_compile to avoid needing
to pass OpenMP flags as libraries.
2016-07-13 11:49:01 -04:00
Alex Turbov
9b588b2bdf
ExternalData: Hide security-sensitive details from output
...
Do not disclose credentials when printing URIs used to fetch external resources.
2016-07-13 18:41:57 +03:00
Brad King
8f1103c0fd
FindOpenMP: Cleanup all variables unconditionally
2016-07-13 11:02:01 -04:00
Brad King
ec963f04cb
FindOpenMP: Improve documentation formatting
...
Also drop link to OpenMP compilers because our supported list may
not include all compilers.
2016-07-13 10:56:46 -04:00
Lars Schmertmann
2eec433f98
ExternalProject: Add support for multiple alternative URLs
...
Now it is possible to pass multiple URLs as a list that will be tried in
and foreach(). So it will try next URL if the previous failed.
Fixes #15749 .
2016-07-13 09:44:34 -04:00
Brad King
291e41855c
Merge topic 'findicu'
...
e3bff7b3
Help: Add notes for topic 'findicu'
4a63be15
FindICU: New module
2016-07-13 09:26:55 -04:00