3 ms·
Try this on for size as a concrete example. (The %{notation} is due to the RPM .spec file syntax -- adjust as required.) argv=( ${CMAKE:-cmake3} ) argv
by gjvc 3y ago
Try this on for size as a concrete example. (The %{notation} is due to the RPM .spec file syntax -- adjust as required.)
argv=( ${CMAKE:-cmake3} )
argv+=( -S %{cmake_source_dir} )
argv+=( -B %{cmake_build_dir} )
argv+=( -G Ninja )
argv+=( -D CMAKE_CXX_FLAGS='-march=native -flto' )
argv+=( -D CMAKE_INSTALL_PREFIX=%{install_home} )
argv+=( -D CMAKE_EXE_LINKER_FLAGS="-Wl,-rpath=%{openssl_root}/lib" )
argv+=( -D OPENSSL_ROOT_DIR=%{openssl_root} )
"${argv[@]}"