Skip to content

Commit

Permalink
CMake: move AMReX_INSTALL option to AMReXOptions.cmake (AMReX-Codes#1840
Browse files Browse the repository at this point in the history
)

* CMake: add missing AMReX_INSTALL option

* CMake: remove AMReX_INSTALL from root CMakeLists.txt
  • Loading branch information
mic84 authored Mar 4, 2021
1 parent e01e1c7 commit 2fb82bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ endif ()
#
# Install amrex -- Export
#
option(AMReX_INSTALL "Generate Install Targets" YES)
if(AMReX_INSTALL)
include(AMReXInstallHelpers)
install_amrex_targets(${_amrex_targets})
Expand Down
5 changes: 5 additions & 0 deletions Tools/CMake/AMReXOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ else ()
endif ()
print_option( BUILD_SHARED_LIBS )

#
# Option to control generation of install targets
#
option(AMReX_INSTALL "Generate Install Targets" ON)


#
# Option to control if Fortran must be enabled ==============================
Expand Down

0 comments on commit 2fb82bf

Please sign in to comment.