4b8f2c5ca0
* Fix packaging
- Bump version to 0.3.0
- Set CMAKE_INSTALL_DEFAULT_COMPONENT at high level
- Fix HOMEPAGE_URL
- Update install components
- Install tests directory
- Create two separate packages: core and tests
- Auto-generate deps based on shared libs (DEB and RPM)
- Auto-generate list of shared libs provided by package (DEB and RPM)
- cleanup cmake/rocprofiler_register_utilities.cmake
* Enable sanitizer jobs
* Update cmake/rocprofiler_register_memcheck.cmake
- set env for LD_PRELOAD
* Update tests for sanitizer jobs
* Remove loading librocprofiler64.so
- this library does not have rocprofiler_set_api_table symbol
* Link to static fmt library
[ROCm/rocprofiler-register commit: e8aed4dbe4]
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
set(BUILD_TESTING OFF)
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME external)
|
|
|
|
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(WITH_GTEST OFF)
|
|
set(WITH_UNWIND 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()
|