use /usr/local as the default CMAKE_INSTALL_PREFIX, #138

This commit is contained in:
Thomas Fussell 2017-04-19 16:54:51 -04:00
parent 607e069b33
commit 868f661be7

View File

@ -76,8 +76,14 @@ set(XLNT_SOURCES ${CELL_SOURCES} ${CHARTS_SOURCES} ${CHARTSHEET_SOURCES}
${WORKSHEET_SOURCES} ${DETAIL_SOURCES} ${DETAIL_CRYPTO_SOURCES})
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/installed"
CACHE PATH "default install path" FORCE)
if(MSVC)
set(DEFAULT_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/installed")
else()
set(DEFAULT_INSTALL_PREFIX "/usr/local")
endif()
set(CMAKE_INSTALL_PREFIX ${DEFAULT_INSTALL_PREFIX}
CACHE PATH "default install path" FORCE)
endif()
if(NOT INC_DEST_DIR)