[Cmake] OPTION string
cmake.org › pipermail › cmakeJul 02, 2003 · Next message: [Cmake] CMake Bug tracker Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi Jan, Here it is: SET(VAR [VALUE] [CACHE TYPE DOCSTRING [FORCE]]) So, you would do something like: SET(MYVAR "Test" CACHE STRING "This is my variable") Andy On Wed, 2003-07-02 at 07:57, Jan Woetzel wrote: > I know the OPTION command to enter ...
CMAKE string options - Stack Overflow
https://stackoverflow.com/questions/870987702.01.2012 · CMAKE string options. Ask Question Asked 10 years, 1 month ago. Active 1 year, 10 months ago. Viewed 23k times 39 How to specify string option in CMakeLists.txt? Syntax option(OPT1 "Helpstring" ON) works perfectly for boolean options but I would like to have few string options like -march= argument passed to gcc. cmake. Share. Follow ...
string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpstring (MAKE_C_IDENTIFIER <string> <output_variable>) Convert each non-alphanumeric character in the input <string> to an underscore and store the result in the <output_variable>. If the first character of the <string> is a digit, an underscore will also be prepended to the result.
option — CMake 3.23.0-rc2 Documentation
cmake.org › cmake › helpoption (<variable> "<help_text>" [value]) Provides an option for the user to select as ON or OFF . If no initial <value> is provided, OFF is used. If <variable> is already set as a normal or cache variable, then the command does nothing (see policy CMP0077 ). If you have options that depend on the values of other options, see the module help ...