mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
use /usr/local as the default CMAKE_INSTALL_PREFIX, #138
This commit is contained in:
parent
607e069b33
commit
868f661be7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user