mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fix using variable before defining it
This commit is contained in:
parent
37638f6d2b
commit
0d76afb801
|
@ -135,6 +135,19 @@ endif()
|
||||||
# Append "d" to the name of the compiled library
|
# Append "d" to the name of the compiled library
|
||||||
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Set debug library postfix")
|
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Set debug library postfix")
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
set(XLNT_INC_DEST_DIR ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
CACHE PATH "Default location to install include files")
|
||||||
|
set(XLNT_LIB_DEST_DIR ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
CACHE PATH "Default location to install library files")
|
||||||
|
set(XLNT_BIN_DEST_DIR ${CMAKE_INSTALL_BINDIR}
|
||||||
|
CACHE PATH "Default location to install runtime files")
|
||||||
|
set(XLNT_MAN_DEST_DIR ${CMAKE_INSTALL_MANDIR}
|
||||||
|
CACHE PATH "Default location to install runtime files")
|
||||||
|
set(XLNT_CMAKE_CFG_DEST_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
||||||
|
CACHE PATH "Default location to install CMake config files")
|
||||||
|
|
||||||
if(NOT STATIC)
|
if(NOT STATIC)
|
||||||
# Compile shared library
|
# Compile shared library
|
||||||
add_library(xlnt SHARED
|
add_library(xlnt SHARED
|
||||||
|
@ -159,19 +172,6 @@ endif()
|
||||||
# requires cmake 3.8+
|
# requires cmake 3.8+
|
||||||
#target_compile_features(xlnt PUBLIC cxx_std_${XLNT_CXX_LANG})
|
#target_compile_features(xlnt PUBLIC cxx_std_${XLNT_CXX_LANG})
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
|
|
||||||
set(XLNT_INC_DEST_DIR ${CMAKE_INSTALL_INCLUDEDIR}
|
|
||||||
CACHE PATH "Default location to install include files")
|
|
||||||
set(XLNT_LIB_DEST_DIR ${CMAKE_INSTALL_LIBDIR}
|
|
||||||
CACHE PATH "Default location to install library files")
|
|
||||||
set(XLNT_BIN_DEST_DIR ${CMAKE_INSTALL_BINDIR}
|
|
||||||
CACHE PATH "Default location to install runtime files")
|
|
||||||
set(XLNT_MAN_DEST_DIR ${CMAKE_INSTALL_MANDIR}
|
|
||||||
CACHE PATH "Default location to install runtime files")
|
|
||||||
set(XLNT_CMAKE_CFG_DEST_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
|
||||||
CACHE PATH "Default location to install CMake config files")
|
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
target_include_directories(xlnt
|
target_include_directories(xlnt
|
||||||
PUBLIC
|
PUBLIC
|
||||||
|
|
Loading…
Reference in New Issue
Block a user