Fix cmake rules to propagate install dir to NA
@@ -43,15 +43,23 @@ set(MERCURY_PACKAGE_TARNAME "${MERCURY_PACKAGE}")
#------------------------------------------------------------------------------
if(NOT MERCURY_INSTALL_BIN_DIR)
set(MERCURY_INSTALL_BIN_DIR ${CMAKE_INSTALL_PREFIX}/bin)
+else()
+ set(NA_INSTALL_BIN_DIR ${MERCURY_INSTALL_BIN_DIR})
endif()
if(NOT MERCURY_INSTALL_LIB_DIR)
set(MERCURY_INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+else()
+ set(NA_INSTALL_LIB_DIR ${MERCURY_INSTALL_LIB_DIR})
endif()
if(NOT MERCURY_INSTALL_INCLUDE_DIR)
set(MERCURY_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include)
+else()
+ set(NA_INSTALL_INCLUDE_DIR ${MERCURY_INSTALL_INCLUDE_DIR})
endif()
if(NOT MERCURY_INSTALL_DATA_DIR)
set(MERCURY_INSTALL_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share)
+else()
+ set(NA_INSTALL_DATA_DIR ${MERCURY_INSTALL_DATA_DIR})
endif()
# Setting this ensures that "make install" will leave rpaths to external
