Skip to content

Commit

Permalink
Fix library macro compatibility wrappers (celeritas-project#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Apr 30, 2024
1 parent d028072 commit b419f62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
21 changes: 15 additions & 6 deletions cmake/CeleritasLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ Deprecated file for use by downstream code. TODO: remove in v1.0.

include("${CMAKE_CURRENT_LIST_DIR}/CudaRdcUtils.cmake")

message(AUTHOR_WARNING "CeleritasLibrary has been replaced by CudaRdcUtils. Please include(CudaRdcUtils) and
replace celeritas_(add_library|add_executable|target_link_libraries) with
cuda_rdc_(...)")
message(AUTHOR_WARNING "CeleritasLibrary has been replaced by CudaRdcUtils.
Please include(CudaRdcUtils) and address the following warnings...")

macro(celeritas_add_library)
message(AUTHOR_WARNING "Replace with cuda_rdc_add_library")
Expand All @@ -27,7 +26,17 @@ macro(celeritas_add_executable)
cuda_rdc_add_executable(${ARGV})
endmacro()

macro(celeritas_link_libraries)
message(AUTHOR_WARNING "Replace with cuda_rdc_link_libraries")
cuda_rdc_link_libraries(${ARGV})
macro(celeritas_target_link_libraries)
message(AUTHOR_WARNING "Replace with cuda_rdc_target_link_libraries")
cuda_rdc_target_link_libraries(${ARGV})
endmacro()

macro(celeritas_target_compile_options)
message(AUTHOR_WARNING "Replace with cuda_rdc_target_compile_options")
cuda_rdc_target_compile_options(${ARGV})
endmacro()

macro(celeritas_set_target_properties)
message(AUTHOR_WARNING "Replace with cuda_rdc_set_target_properties")
cuda_rdc_set_target_properties(${ARGV})
endmacro()
1 change: 1 addition & 0 deletions scripts/cmake-presets/goldfinger.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"CMAKE_CXX_STANDARD": {"type": "STRING", "value": "17"},
"CMAKE_CXX_EXTENSIONS": {"type": "BOOL", "value": "OFF"},
"CMAKE_FIND_FRAMEWORK": {"type": "STRING", "value": "LAST"},
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install-${presetName}"
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "-O2 -g -DNDEBUG -fno-inline -fno-omit-frame-pointer",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Werror -Wno-error=deprecated -pedantic -fdiagnostics-color=always"
}
Expand Down

0 comments on commit b419f62

Please sign in to comment.