Skip to content

Commit

Permalink
Merge branch 'feature/allow-subdir-builds' of github.com:DavidPoliako…
Browse files Browse the repository at this point in the history
…ff/apex into develop
  • Loading branch information
khuck committed Aug 13, 2021
2 parents 63db947 + 40cb72d commit 6bee392
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,23 +195,23 @@ persists.")
# Get the current working branch
execute_process(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# Get the current working tag
execute_process(
COMMAND git describe --abbrev=0 --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# Get the latest abbreviated commit hash of the working branch
execute_process(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
Expand Down Expand Up @@ -913,8 +913,8 @@ if (RCR_FOUND)
SET(extraincludes "-I${RCR_INCLUDE_DIR}")
endif (RCR_FOUND)
SET(requirements "")
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pkgconfig/apex.pc.in
${CMAKE_BINARY_DIR}/pkgconfig/apex.pc @ONLY)
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/pkgconfig/apex.pc.in
${PROJECT_BINARY_DIR}/pkgconfig/apex.pc @ONLY)
INSTALL_FILES(/lib/pkgconfig FILES pkgconfig/apex.pc)

if (APEX_USE_WEAK_SYMBOLS)
Expand Down
6 changes: 3 additions & 3 deletions src/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/src/scripts/apex_exec
${CMAKE_BINARY_DIR}/src/scripts/apex_exec @ONLY)
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/src/scripts/apex_exec
${PROJECT_BINARY_DIR}/src/scripts/apex_exec @ONLY)
#INSTALL_FILES(bin FILES ${CMAKE_BINARY_DIR}/src/scripts/apex_exec)


Expand All @@ -9,7 +9,7 @@ if (BUILD_STATIC_EXECUTABLES)
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ)
else()
INSTALL(FILES ${CMAKE_BINARY_DIR}/src/scripts/apex_exec apex_pthread_exec consolidate.py task_scatterplot.py counter_scatterplot.py DESTINATION bin
INSTALL(FILES ${PROJECT_BINARY_DIR}/src/scripts/apex_exec apex_pthread_exec consolidate.py task_scatterplot.py counter_scatterplot.py DESTINATION bin
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ)
Expand Down

0 comments on commit 6bee392

Please sign in to comment.