summaryrefslogtreecommitdiff
path: root/share/cmake-3.10/Help/variable/CMAKE_TRY_COMPILE_TARGET_TYPE.rst
blob: 5fa8dfcb674b9f3a109841af2128b9a7349f1ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CMAKE_TRY_COMPILE_TARGET_TYPE
-----------------------------

Type of target generated for :command:`try_compile` calls using the
source file signature.  Valid values are:

``EXECUTABLE``
  Use :command:`add_executable` to name the source file in the
  generated project.  This is the default if no value is given.

``STATIC_LIBRARY``
  Use :command:`add_library` with the ``STATIC`` option to name the
  source file in the generated project.  This avoids running the
  linker and is intended for use with cross-compiling toolchains
  that cannot link without custom flags or linker scripts.