This command analyzes your project and process dependencies, then creates or updates the required project CMake files. You can use it to specify which CMake generator you want to use.
This command accepts all CMake directives, you could say this command is basically a cmake invocation within the project build folder.
You can define a variable in your CMakeLists.txt and pass the value from command line. To do this, just pass the value as a parameter of bii configure.
Imagine you have defined a variable name FOO in your CMakeList.txt and you want to define it with TRUE or FALSE.
IF(FOO)
message(STATUS "FOO Enabled!!")
ELSE()
message(STATUS "FOO Disabled!!")
ENDIF()
Define the value of FOO with the flag -DFOO=TRUE
or -DFOO=FALSE
:
$ bii configure -DFOO=TRUE
Running: cmake -G "MinGW Makefiles" -Wno-dev -DFOO=TRUE ../cmake
FOO Enabled!!
bii configure –toolchain command define the tool-chain to use, here’s more about the custom tool-chains.