Skip to content

Commit

Permalink
#1605 fix nvcc compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Dec 21, 2021
1 parent 4899793 commit ecd86ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions cmake/load_bundled_libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ add_subdirectory(${PROJECT_LIB_DIR}/CLI)
# fmt always included in the build
set(FMT_LIBRARY fmt)
add_subdirectory(${PROJECT_LIB_DIR}/fmt)
target_compile_definitions(
${FMT_LIBRARY}
PUBLIC
FMT_BEGIN_NAMESPACE=namespace\ fmt\ \{\ inline\ namespace\ vt\ \{)
target_compile_definitions(
${FMT_LIBRARY}
PUBLIC
FMT_END_NAMESPACE=\}\})

# json library always included in the build
set(JSON_BuildTests OFF)
Expand Down
4 changes: 2 additions & 2 deletions lib/fmt/include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@
# define FMT_INLINE_NAMESPACE namespace
# define FMT_END_NAMESPACE \
} \
using namespace v7; \
using namespace vt; \
}
# endif
# define FMT_BEGIN_NAMESPACE \
namespace fmt { \
FMT_INLINE_NAMESPACE v7 {
FMT_INLINE_NAMESPACE vt {
#endif

#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
Expand Down

0 comments on commit ecd86ac

Please sign in to comment.