Skip to content

Commit

Permalink
Merge pull request #1434 from gentryx/master
Browse files Browse the repository at this point in the history
added missing install rule, removed some dead CMake code
  • Loading branch information
sithhell committed Mar 31, 2015
2 parents 6796927 + 2120366 commit 5818571
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
19 changes: 6 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ if(APPLE)
set(HPX_FULL_RPATH_DEFAULT OFF)
endif()
hpx_option(HPX_FULL_RPATH BOOL "Build and link HPX libraries and executables with full RPATHs (default: ON)" OFF ADVANCED)
hpx_option(HPX_BUILD_WITH_INSTALL_PREFIX BOOL "Always set the HPX_PREFIX default to the install directory (default: OFF)" OFF ADVANCED)

################################################################################
# Native TLS configuration
Expand Down Expand Up @@ -1118,18 +1117,13 @@ foreach(def ${HPX_CONFIG_DEFINITIONS_VAR})
endforeach()

# Generate a defines.hpp to be used in the build directory ...
if(HPX_BUILD_WITH_INSTALL_PREFIX)
set(HPX_DEFINES_PREFIX ${HPX_BUILD_PREFIX})
else()
set(HPX_DEFINES_PREFIX ${HPX_BUILD_PREFIX})
endif()
set(HPX_DEFINES_PREFIX ${HPX_BUILD_PREFIX})
configure_file("${hpx_SOURCE_DIR}/cmake/templates/config_defines.hpp.in"
"${CMAKE_BINARY_DIR}/hpx/config/defines.hpp"
@ONLY)

# Generate a defines.hpp to be used in the install directory ...
set(HPX_DEFINES_PREFIX ${HPX_PREFIX})

configure_file("${hpx_SOURCE_DIR}/cmake/templates/config_defines.hpp.in"
"${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/hpx/config/defines.hpp"
@ONLY)
Expand All @@ -1143,13 +1137,12 @@ configure_file("${hpx_SOURCE_DIR}/cmake/templates/hpxrun.py.in"
# installation instructions
################################################################################
install(
DIRECTORY ${CMAKE_BINARY_DIR}/bin/
DESTINATION hpx/bin/
FILES "${CMAKE_BINARY_DIR}/bin/hpxrun.py"
DESTINATION bin
COMPONENT core
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
FILES_MATCHING PATTERN "hpxcxx" EXCLUDE)
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE)

install( # install all hpx header files
DIRECTORY hpx/
Expand Down
3 changes: 3 additions & 0 deletions cmake/HPX_GeneratePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,7 @@ install(
"${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/hpxcxx"
DESTINATION bin
COMPONENT compiler_wrapper
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
)

0 comments on commit 5818571

Please sign in to comment.