diff --git a/moose-core/CMakeLists.txt b/moose-core/CMakeLists.txt index edd1d6cd8050b0c5561210bedd9d46975b74cb5c..b9b807ff48d7e86759953e8f6269cba6860b9c85 100644 --- a/moose-core/CMakeLists.txt +++ b/moose-core/CMakeLists.txt @@ -407,7 +407,9 @@ execute_process( message( STATUS "Platform ${_platform_desc}" ) -set(EXTRA_ARGS "--prefix ${CMAKE_INSTALL_PREFIX}") +# DISTUTILS_EXTRA_ARGS may come of top-level cmake script. On DEBIAN/UBUNTU, it +# is most likely to be --install-layout=deb . +set(EXTRA_ARGS "--prefix ${CMAKE_INSTALL_PREFIX} ${DISTUTILS_EXTRA_ARGS}") ## NOTE: Disable it here. It must be handled by moose repository CMakeLists.txt ## which is used in created packages. For normal user, it should install in