qiskit-aer/cmake/nvcc_add_compiler_options.c...

14 lines
482 B
CMake

function(nvcc_add_compiler_options_list inList outVarName)
set(L "${inList}")
list(TRANSFORM L PREPEND " --compiler-options ")
string(REPLACE ";" " " TMP ${L})
set(${outVarName} ${TMP} PARENT_SCOPE)
endfunction()
function(nvcc_add_compiler_options inStr outVarName)
string(REPLACE " " ";" L "${inStr}")
list(TRANSFORM L PREPEND " --compiler-options ")
string(REPLACE ";" " " TMP ${L})
set(${outVarName} ${TMP} PARENT_SCOPE)
endfunction()