
- CMAKE GENERATOR EXPRESSION DRIVER
- CMAKE GENERATOR EXPRESSION MANUAL
- CMAKE GENERATOR EXPRESSION PORTABLE
Found cuDNN: v7.6.1 (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so) Found CUDNN: /usr/lib/x86_64-linux-gnu/libcudnn.so Caffe2: CUDA toolkit directory: /usr/local/cuda Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc Found CUB: /home/rakesh/rishabh_workspace/Garbage/kaldi/tools/cub Found NvToolExt: /usr/local/cuda/include Found CUDA: /usr/local/cuda (found version "10.1")


Found BLAS: /home/rakesh/rishabh_workspace/Garbage/kaldi/tools/OpenBLAS/libopenblas.so Looking for pthread_create in pthread - found Looking for pthread_create in pthreads - not found Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed Performing Test CMAKE_HAVE_LIBC_PTHREAD

Found PythonInterp: /usr/local/miniconda3/bin/python (found version "3.7.3") Check for working CXX compiler: /usr/bin/c++ - works Check for working CXX compiler: /usr/bin/c++ Check for working C compiler: /usr/bin/cc - works Check for working C compiler: /usr/bin/cc The CXX compiler identification is GNU 7.4.0 The previous example then becomes "LINKER:SHELL:-z defs".Configuration : - The C compiler identification is GNU 7.4.0 The LINKER: prefix supports, as an alternative syntax, specification of arguments using the SHELL: prefix and space as separator. The LINKER: prefix can be specified as part of a SHELL: prefix expression.
CMAKE GENERATOR EXPRESSION DRIVER
The driver prefix and driver separator are given by the values of the CMAKE_LINKER_WRAPPER_FLAG and CMAKE_LINKER_WRAPPER_FLAG_SEP variables.įor example, "LINKER:-z,defs" becomes -Xlinker -z -Xlinker defs for Clang and -Wl,-z,defs for GNU GCC. LINKER: is replaced by the appropriate driver option and, by the appropriate driver separator.
CMAKE GENERATOR EXPRESSION PORTABLE
The LINKER: prefix and, separator can be used to specify, in a portable way, options to pass to the linker tool. To pass options to the linker tool, each compiler driver has its own syntax. For example, "SHELL:-D A" "SHELL:-D B" becomes -D A -D B. The SHELL: prefix is dropped, and the rest of the option string is parsed using the separate_arguments() UNIX_COMMAND mode. One may specify a group of options using shell-like quoting along with a SHELL: prefix. While beneficial for individual options, the de-duplication step can break up option groups. The set of options is de-duplicated to avoid repetition. The final set of compile or link options used for a target is constructed by accumulating options from the current target and the usage requirements of its dependencies. Options wrapped with $ generator expression will be used only for the host link step.

Options wrapped with $ generator expression will be used only for the device link step. When a device link step is involved, which is controlled by CUDA_SEPARABLE_COMPILATION and CUDA_RESOLVE_DEVICE_SYMBOLS properties and policy CMP0105, the raw options will be delivered to the host and device link steps (wrapped in -Xcompiler or equivalent for device link).
CMAKE GENERATOR EXPRESSION MANUAL
See the cmake-buildsystem(7) manual for more on defining buildsystem properties. See the cmake-generator-expressions(7) manual for available expressions. Repeated calls for the same append items in the order called.Īrguments to target_link_options may use “generator expressions” with the syntax $. ( IMPORTED targets only support INTERFACE items.) The following arguments specify link options. PUBLIC and INTERFACE items will populate the INTERFACE_LINK_OPTIONS property of. PRIVATE and PUBLIC items will populate the LINK_OPTIONS property of. The INTERFACE, PUBLIC and PRIVATE keywords are required to specify the scope of the following arguments. If BEFORE is specified, the content will be prepended to the property instead of being appended. To add archiver or MSVC librarian flags, see the STATIC_LIBRARY_OPTIONS target property. This command cannot be used to add options for static library targets, since they do not use a linker.
