adding a message about -fstandalone-debug

This commit is contained in:
Peter Doak 2022-06-24 14:19:55 -04:00
parent 17160d4425
commit 8019f7f21b
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer")
# but until we discover how to use the ${OPENMP_OFFLOAD_COMPILE_OPTIONS} more selectively # but until we discover how to use the ${OPENMP_OFFLOAD_COMPILE_OPTIONS} more selectively
# this is the only way to avoid a warning per compilation unit that contains an omp symbol. # this is the only way to avoid a warning per compilation unit that contains an omp symbol.
if (NOT OFFLOAD_TARGET MATCHES "nvptx64") if (NOT OFFLOAD_TARGET MATCHES "nvptx64")
message(STATUS "QMCPACK adds -fstandalone-debug for Debug builds")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fstandalone-debug") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fstandalone-debug")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fstandalone-debug") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fstandalone-debug")
endif() endif()