Skip to content

Commit a144379

Browse files
committed
update CMakeLists.txt
1 parent 0002a03 commit a144379

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ endif()
4141
add_library(cupdlpx_compile_flags INTERFACE)
4242

4343
if(MSVC)
44-
target_compile_options(cupdlpx_compile_flags INTERFACE /O2 /W4 /Zi)
44+
target_compile_options(cupdlpx_compile_flags INTERFACE
45+
$<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:/O2 /W4 /Zi>
46+
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler "/O2 /W4 /Zi">
47+
)
4548
target_compile_definitions(cupdlpx_compile_flags INTERFACE
4649
_CRT_SECURE_NO_WARNINGS
4750
strtok_r=strtok_s

0 commit comments

Comments
 (0)