use non-standard xlsxio lib name on windows

develop
Myk Taylor 2020-08-09 03:30:59 -07:00
parent 8913d43d6f
commit 7a0853025a
1 changed files with 3 additions and 1 deletions

@ -35,9 +35,11 @@ endforeach()
if(WIN32) if(WIN32)
set(EXPAT_LIB_SUFFIX "MD.lib") set(EXPAT_LIB_SUFFIX "MD.lib")
set(LIB_SUFFIX ".lib") set(LIB_SUFFIX ".lib")
set(XLSXIO_LIB_PREFIX "")
else() else()
set(EXPAT_LIB_SUFFIX ".a") set(EXPAT_LIB_SUFFIX ".a")
set(LIB_SUFFIX ".a") set(LIB_SUFFIX ".a")
set(XLSXIO_LIB_PREFIX "lib")
endif() endif()
set(LIBEXPAT_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/libexpat) set(LIBEXPAT_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/libexpat)
@ -64,7 +66,7 @@ ExternalProject_Add(libzip_project
set(XLSXIO_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/xlsxio) set(XLSXIO_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/xlsxio)
set(XLSXIO_INSTALL_DIR ${XLSXIO_INSTALL_DIR} PARENT_SCOPE) set(XLSXIO_INSTALL_DIR ${XLSXIO_INSTALL_DIR} PARENT_SCOPE)
set(XLSXIO_LIB ${XLSXIO_INSTALL_DIR}/lib/libxlsxio_read${LIB_SUFFIX}) set(XLSXIO_LIB ${XLSXIO_INSTALL_DIR}/lib/${XLSXIO_LIB_PREFIX}xlsxio_read${LIB_SUFFIX})
set(XLSXIO_LIB ${XLSXIO_LIB} PARENT_SCOPE) set(XLSXIO_LIB ${XLSXIO_LIB} PARENT_SCOPE)
ExternalProject_Add(xlsxio_project ExternalProject_Add(xlsxio_project
PREFIX xlsxio PREFIX xlsxio