Stephen Kelly
520ca0ff6c
cmGeneratorTarget: Add API for property keys
2015-10-27 07:44:23 +01:00
Stephen Kelly
6a72b3c84e
Export: Port interface to cmGeneratorTarget.
2015-10-18 16:29:29 +02:00
Stephen Kelly
1293c1561a
cmExportTryCompileFileGenerator: Port to cmGeneratorTarget.
2015-10-18 16:29:29 +02:00
Brad King
dfd371dc01
Merge topic 'genex-consumers-generator-targets'
...
c4ae1578
Genex: Port some access API to cmGeneratorTarget.
6d27a3db
Genex: Port implementation to cmGeneratorTarget.
2015-10-16 09:35:37 -04:00
Stephen Kelly
c4ae157865
Genex: Port some access API to cmGeneratorTarget.
2015-10-15 22:40:56 +02:00
Stephen Kelly
eac15298a8
cmState: Move TargetType enum from cmTarget.
...
Mostly automated:
values=( "EXECUTABLE" "STATIC_LIBRARY" "SHARED_LIBRARY" "MODULE_LIBRARY" "OBJECT_LIBRARY" "UTILITY" "GLOBAL_TARGET" "INTERFACE_LIBRARY" "UNKNOWN_LIBRARY" "TargetType")
for i in "${values[@]}"; do git grep -l cmTarget::$i | xargs sed -i "s|cmTarget::$i|cmState::$i|g"; done
2015-10-15 00:41:39 +02:00
Stephen Kelly
1583440509
cmGeneratorExpression: Port interface to cmGeneratorTarget.
2015-10-12 23:07:46 +02:00
Stephen Kelly
11165525ba
cmGeneratorExpression: Port to cmLocalGenerator.
2015-10-12 23:07:46 +02:00
Stephen Kelly
d945b36a93
cmExportTryCompileFileGenerator: Evaluate genex with cmGeneratorTarget.
2015-10-05 18:42:27 +02:00
Stephen Kelly
d560bfd273
cmGeneratorTarget: Move GetInstallNameDir* from cmTarget.
2015-08-05 18:20:47 +02:00
Stephen Kelly
570938cbfd
cmExportTryCompileFileGenerator: Create cmGeneratorTargets.
...
This is not a deprecated behavior, but only requires IMPORTED targets
be made.
2015-07-27 21:59:03 +02:00
Stephen Kelly
4ab7d407a5
cmExportTryCompileFileGenerator: Add newline between methods.
2015-06-07 10:32:53 +02:00
Stephen Kelly
e133e40937
cmExportTryCompileFileGenerator: Remove unused variable.
2015-06-07 10:32:27 +02:00
Ben Boeckel
a08292059e
genex: remove the need for backtraces
...
Rather than making dummy backtraces and passing them around, just make
backtraces optional.
2014-06-05 12:44:18 -04:00
Stephen Kelly
21c573f682
Remove some c_str() calls.
...
Use the clang RemoveCStrCalls tool to automatically migrate the
code. This was only run on linux, so does not have any positive or
negative effect on other platforms.
2014-03-11 15:03:50 +01:00
Ben Boeckel
ec97ed7d0c
stringapi: Use strings for property names
...
Property names are always generated by CMake and should never be NULL.
2014-03-08 13:05:28 -05:00
Rolf Eike Beer
c768e398f9
cmMakefile: make some methods take const std::string& instead of const char*
...
Most callers already have a std::string, on which they called c_str() to pass it
into these methods, which internally converted it back to std::string. Pass a
std::string directly to these methods now, avoiding all these conversions.
Those methods that only pass in a const char* will get the conversion to
std::string now only once.
2014-01-16 09:28:29 -05:00
Stephen Kelly
0f3e8e957f
Undefine local preprocessor loop variables.
...
Most occurances of this pattern already contain the undef, so add it to
the rest too.
2014-01-06 17:25:10 +01:00
Stephen Kelly
146493363e
Genex: Simplify the preprocessor looper for interface properties.
...
By removing the INTERFACE_ prefix, we can use this in more contexts.
2013-11-09 20:31:35 +01:00
Stephen Kelly
c4373b33b2
cmTarget: Make GetProperty() const.
...
This has follow-on effects for other methods and classes. Further
work on making the use of const cmTarget pointers common can be
done, particularly with a view to generate-time methods.
2013-10-31 14:52:11 +01:00
Stephen Kelly
cc8f79670e
try_compile: Extract IMPORTED targets from INTERFACE_LINK_LIBRARIES
2013-08-26 11:37:00 -04:00
Stephen Kelly
fd4fb9ef04
try_compile: Extract IMPORTED targets from LINK_DEPENDENT_LIBRARIES
2013-08-26 11:36:57 -04:00
Stephen Kelly
0d8db250ce
Use a preprocessor loop to manage the valid transitive properties.
...
Hopefully this will prevent regressions when adding further transitive
properties in the future.
2013-06-10 16:13:21 +02:00
Stephen Kelly
8a3b5bede8
Find targets in INTERFACE_COMPILE_OPTIONS when exporting for try_compile.
...
This was missing from commit 80ca9c4b
(Add COMPILE_OPTIONS target
property., 2013-05-16).
2013-06-10 16:12:22 +02:00
Clinton Stimpson
8576b3f978
OS X: Add support for @rpath in export files.
...
Also expand the IMPORTED_SONAME property for targets
to match the install_name.
2013-06-03 09:42:05 -04:00
Stephen Kelly
1c0597c25b
Add a new Export generator for IMPORTED targets.
...
This is to be used during try_compile using LINK_LIBRARIES in the
srcfile signature and, in the future, TARGETS in the binary dir
signature.
2013-02-22 08:35:38 -05:00