Skip to content

Commit

Permalink
no default install prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 9, 2024
1 parent fc30c45 commit 97cf61d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions scripts/build_cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ option(gui "build cmake-gui")

full_version("${version}")

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
get_filename_component(p "~/cmake-${version}" ABSOLUTE)
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${p}")
endif()

message(STATUS "Using CMake ${CMAKE_VERSION} to build CMake ${version} and install to ${CMAKE_INSTALL_PREFIX}")

set(cmake_args
Expand Down
5 changes: 0 additions & 5 deletions scripts/build_ninja/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ if(NOT version)
string(JSON version GET ${_j} ninja)
endif()

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
file(REAL_PATH "~/ninja-${version}" p EXPAND_TILDE)
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${p}")
endif()

set(cmake_args
-DBUILD_TESTING:BOOL=OFF
-DCMAKE_BUILD_TYPE=Release
Expand Down
7 changes: 0 additions & 7 deletions scripts/mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ else()
endif()
endif()

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
file(REAL_PATH "~" home EXPAND_TILDE)
cmake_path(GET mpi_url STEM n)
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${home}/${n}")
endif()


# Downloading URL instead of Git avoids very long "autogen" step
ExternalProject_Add(MPI
URL ${mpi_url}
Expand Down

0 comments on commit 97cf61d

Please sign in to comment.