ARCHIVE_OUTPUT_DIRECTORYΒΆ
Output directory in which to build ARCHIVE target files.
This property specifies the directory into which archive target files
should be built. The property value may use
generator expressions
.
Multi-configuration generators (Visual Studio,
Xcode
, Ninja Multi-Config
) append a
per-configuration subdirectory to the specified directory unless a generator
expression is used.
This property is initialized by the value of the
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
variable if it is set when a target is created.
Note
On macOS, this property will be ignored for the linker import files (e.g.
.tbd
files, see ENABLE_EXPORTS
property for details) when:
The
FRAMEWORK
is set, because the framework layout cannot be changed.The
Xcode
generator is used, due to the limitations and constraints of theXcode
tool.
In both cases, the linker import files will be generated in the same directory as the shared library.
See also the ARCHIVE_OUTPUT_DIRECTORY_<CONFIG>
target property.