33b19051d2
* Added submodules for glog/fmt Removes existing printing/formatting code. * Update external/CMakeLists.txt Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com> * Update external/CMakeLists.txt Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com> * Update external/CMakeLists.txt - checkout submodule if not already checked out or clone repo if no .gitmodules file - find_package(... REQUIRED) * Disable tests from external directory * Update external/CMakeLists.txt - fix type: BRANCH -> REPO_BRANCH * Update cmake/rocprofiler_register_formatting.cmake - Include external/CMakeLists.txt in format-cmake target - include format-cmake in format target * Fix cmake options - ROCPROFILE_REGISTER_* -> ROCPROFILER_REGISTER_* * Update rocprofiler_register_linting.cmake - fix header filter to exclude external headers - enable warning-as-errors except for misc-header-include-cycle because that originates in fmt headers * Fix clang-tidy error in utility.cpp - a bit out of place in this PR but caught due to --warning-as-errors addition --------- Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>
34 righe
1.0 KiB
CMake
34 righe
1.0 KiB
CMake
set(BUILD_TESTING OFF)
|
|
|
|
if(ROCPROFILER_REGISTER_BUILD_GLOG)
|
|
# checkout submodule if not already checked out or clone repo if no .gitmodules file
|
|
rocprofiler_register_checkout_git_submodule(
|
|
RECURSIVE
|
|
RELATIVE_PATH glog
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
|
REPO_URL https://github.com/google/glog.git
|
|
REPO_BRANCH "master")
|
|
|
|
# May want to use GFLAGS in the future
|
|
set(WITH_GFLAGS OFF)
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
add_subdirectory(glog EXCLUDE_FROM_ALL)
|
|
else()
|
|
find_package(glog REQUIRED)
|
|
endif()
|
|
|
|
if(ROCPROFILER_REGISTER_BUILD_FMT)
|
|
# checkout submodule if not already checked out or clone repo if no .gitmodules file
|
|
rocprofiler_register_checkout_git_submodule(
|
|
RECURSIVE
|
|
RELATIVE_PATH fmt
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
|
REPO_URL https://github.com/fmtlib/fmt.git
|
|
REPO_BRANCH "master")
|
|
|
|
set(FMT_TEST OFF)
|
|
add_subdirectory(fmt EXCLUDE_FROM_ALL)
|
|
else()
|
|
find_package(fmt REQUIRED)
|
|
endif()
|