Skip to content

Commit

Permalink
Rename CMake files to prevent name collisions
Browse files Browse the repository at this point in the history
When consumed as a subproject, the CMake files could be imported into the parent project where the filenames could collide.
  • Loading branch information
jrmadsen authored and hainest committed Dec 2, 2022
1 parent f7b2fc1 commit a1a8ace
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ set(CMAKE_MODULE_PATH "${DYNINST_ROOT}/cmake" "${DYNINST_ROOT}/cmake/Modules"
${CMAKE_MODULE_PATH})

# Set the C and C++ language standards
include(LanguageStandards)
include(DyninstLanguageStandards)

# Find the necessary third-party libraries
find_package(ThreadDB)
find_package(Thread_DB)
find_package(Threads)
include(Boost)
include(ThreadingBuildingBlocks)
include(ElfUtils)
include(DyninstBoost)
include(DyninstTBB)
include(DyninstElfUtils)

if(UNIX)
include(LibIberty REQUIRED)
include(DyninstLibIberty REQUIRED)
endif()

include(shared)
include(DyninstLibrary)

if(USE_OpenMP)
find_package(OpenMP REQUIRED)
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions cmake/shared.cmake → cmake/DyninstLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ function(dyninst_library target)
DESTINATION "${INSTALL_CMAKE_DIR}")
endfunction()

include(${DYNINST_ROOT}/cmake/platform.cmake)
include(${DYNINST_ROOT}/cmake/cap_arch_def.cmake)
include(${DYNINST_ROOT}/cmake/visibility.cmake)
include(${DYNINST_ROOT}/cmake/warnings.cmake)
include(${DYNINST_ROOT}/cmake/options.cmake)
include(${DYNINST_ROOT}/cmake/optimization.cmake)
include(DyninstPlatform)
include(DyninstCapArchDef)
include(DyninstVisibility)
include(DyninstWarnings)
include(DyninstOptions)
include(DyninstOptimization)

set(BUILD_SHARED_LIBS ON)

Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions cmake/DyninstPlatform.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(UNIX)
include(DyninstPlatformUnix)
else()
include(DyninstPlatformWindows)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions cmake/platform.cmake

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ else()
INSTALL_COMMAND
${CMAKE_COMMAND} -DLIBDIR=${TBB_LIBRARY_DIRS} -DINCDIR=${TBB_INCLUDE_DIRS}
-DPREFIX=${_tbb_prefix_dir} -P
${CMAKE_CURRENT_LIST_DIR}/ThreadingBuildingBlocks.install.cmake)
${PROJECT_SOURCE_DIR}/cmake/tpls/DyninstTBBInstall.cmake)
endif()

include_directories(SYSTEM ${TBB_INCLUDE_DIRS})
Expand Down
File renamed without changes.

0 comments on commit a1a8ace

Please sign in to comment.