Skip to content

Commit

Permalink
Remove debugging cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
adayton1 committed Jan 9, 2024
1 parent e2671c0 commit 6a7ec08
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
36 changes: 0 additions & 36 deletions src/tpl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,55 +133,19 @@ if (NOT TARGET camp)
endif()
endif ()

if (TARGET fmt)
message(WARNING "Target fmt found")
endif()

if (TARGET fmt::fmt)
message(WARNING "Target fmt::fmt found")
endif()

if (TARGET std::fmt)
message(WARNING "Target std::fmt found")
endif()

message(WARNING "fmt_DIR: ${fmt_DIR}")
message(WARNING "FMT_DIR: ${FMT_DIR}")

if (NOT TARGET fmt::fmt)
message(WARNING "Part 1")

if (DEFINED fmt_DIR)
message(WARNING "Part 2")
find_package(fmt 9.1...10 REQUIRED
NO_DEFAULT_PATH
PATHS
${fmt_DIR}
${fmt_DIR}/lib64/cmake/fmt)

set_target_properties(fmt::fmt PROPERTIES IMPORTED_GLOBAL TRUE)

if (TARGET fmt)
message(WARNING "Target fmt found")
endif()

if (TARGET fmt::fmt)
message(WARNING "Target fmt::fmt found")
endif()

if (TARGET std::fmt)
message(WARNING "Target std::fmt found")
endif()

message(WARNING "fmt_FOUND: ${fmt_FOUND}")

else ()
message(WARNING "Part 3")
if (NOT EXISTS ${PROJECT_SOURCE_DIR}/src/tpl/umpire/fmt/CMakeLists.txt)
message(WARNING "Part 4")
message(FATAL_ERROR "fmt submodule not initialized. Run 'git submodule update --init --recursive' in the git repository or set fmt_DIR to use an external build of fmt.")
else ()
message(WARNING "Part 5")
set(FMT_INSTALL ON)
set(FMT_SYSTEM_HEADERS ON)
add_subdirectory(umpire/fmt)
Expand Down
14 changes: 0 additions & 14 deletions src/umpire/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@
# SPDX-License-Identifier: (MIT)
##############################################################################

if (TARGET fmt)
message(WARNING "2 Target fmt found")
endif()

if (TARGET fmt::fmt)
message(WARNING "2 Target fmt::fmt found")
endif()

if (TARGET std::fmt)
message(WARNING "2 Target std::fmt found")
endif()

message(WARNING "2 fmt_FOUND: ${fmt_FOUND}")

add_subdirectory(util)
add_subdirectory(resource)
add_subdirectory(alloc)
Expand Down
13 changes: 0 additions & 13 deletions src/umpire/util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
#
# SPDX-License-Identifier: (MIT)
##############################################################################
if (TARGET fmt)
message(WARNING "3 Target fmt found")
endif()

if (TARGET fmt::fmt)
message(WARNING "3 Target fmt::fmt found")
endif()

if (TARGET std::fmt)
message(WARNING "3 Target std::fmt found")
endif()

message(WARNING "3 fmt_FOUND: ${fmt_FOUND}")

set(UMPIRE_ENABLE_SYCL ${UMPIRE_ENABLE_SYCL})

Expand Down

0 comments on commit 6a7ec08

Please sign in to comment.