diff --git a/CMakeLists.txt b/CMakeLists.txt index 02ee758bef..e28710e602 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -391,6 +391,7 @@ if(NOT(${HIGHS_NO_DEFAULT_THREADS} STREQUAL "OFF")) endif() add_compile_options("$<$,$>:-G>") +add_compile_options("-g3") # If Visual Studio targets are being built. if(MSVC) diff --git a/src/pdlp/cupdlp/cuda/CMakeLists.txt b/src/pdlp/cupdlp/cuda/CMakeLists.txt index 14eab1b8cc..ad60caae20 100644 --- a/src/pdlp/cupdlp/cuda/CMakeLists.txt +++ b/src/pdlp/cupdlp/cuda/CMakeLists.txt @@ -18,10 +18,10 @@ target_compile_options(cudalin PRIVATE # PUBLIC # $<$: "-G") -# if(CMAKE_BUILD_TYPE STREQUAL "Debug") -# target_compile_options(cudalin PRIVATE $<$:-G>) +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + target_compile_options(cudalin PRIVATE $<$:-G>) -# endif() +endif() set_target_properties(cudalin PROPERTIES CUDA_SEPARABLE_COMPILATION ON) # target_include_directories(cudalin PUBLIC "/usr/local/cuda/include")