How can I list cmake default build option in command-line?.
I need to build OpenCV libraries from source, before that I want know what are the default build settings.
相关问题
- Avoid cmake to add the flags -search_paths_first a
- CMakeList file to generate LLVM bitcode file from
- How to fix NDK build error for HelloCardboard samp
- Linking against GLEW with CMake
- Linking libavcodec in Cmake, find_library won'
相关文章
- Target requires the language dialect “CXX17” (with
- How do I tell cmake not to create a console window
- Do something for all targets
- CMake: Replace compile flags of an INTERFACE targe
- Generate Web Assembly from CMake Project with a Sp
- Integrate ITK (Insight Toolkit) into own project
- Is there a way to disallow “experimental” C++17 in
- CMake properties and expanding generator expressio
You can do
cmake -LAH
too. TheH
flag will provide you help for each option.cmake -LA
To list all
option(
andset( CACHE
(cached) variables do:Sample stdout:
The
-A
switch also show options marked as advanced, so you will likely want to omit it when casually browsing the most useful options.ccmake
ncursesshows:
Tested in Ubuntu 16.10, cmake 3.5.2.
I do not know of an direct way to do it.
A way around this is to edit the main CMakeLists.txt and print at the end of the file the settings you are interested. The Variables where the most important cmake setting are stored are listed here:
I always print these variables at the end of my CMakeLists.txt to see the settings.