mirror of https://github.com/Qiskit/qiskit-aer.git
14 lines
482 B
CMake
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()
|