1 2 3
project('cmake_set_opt', ['c', 'cpp']) import('cmake').subproject('cmOpts', cmake_options: '-DSOME_CMAKE_VAR=something')