bugfix: fix cmake static linkage option.
Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>pull/294/head
parent
8b1a6ba920
commit
e09d88fa59
|
@ -76,11 +76,18 @@ SET( ASSIMP_INCLUDE_INSTALL_DIR "include" CACHE PATH
|
||||||
"Path the header files are installed to." )
|
"Path the header files are installed to." )
|
||||||
SET( ASSIMP_BIN_INSTALL_DIR "bin" CACHE PATH
|
SET( ASSIMP_BIN_INSTALL_DIR "bin" CACHE PATH
|
||||||
"Path the tool executables are installed to." )
|
"Path the tool executables are installed to." )
|
||||||
|
SET ( ASSIMP_BUILD_STATIC_LIB OFF CACHE BOOL
|
||||||
|
"Build a static (.a) version of the library" )
|
||||||
|
|
||||||
SET(ASSIMP_DEBUG_POSTFIX "d" CACHE STRING "Debug Postfitx for lib, samples and tools")
|
SET(ASSIMP_DEBUG_POSTFIX "d" CACHE STRING "Debug Postfitx for lib, samples and tools")
|
||||||
|
|
||||||
# Allow the user to build a static library
|
# Allow the user to build a static library
|
||||||
option ( BUILD_SHARED_LIBS "Build a shared version of the library" ON )
|
option ( BUILD_SHARED_LIBS "Build a shared version of the library" ON )
|
||||||
|
IF ( ASSIMP_BUILD_STATIC_LIB )
|
||||||
|
option ( BUILD_SHARED_LIBS "Build a shared version of the library" OFF )
|
||||||
|
ELSE ( ASSIMP_BUILD_STATIC_LIB )
|
||||||
|
option ( BUILD_SHARED_LIBS "Build a shared version of the library" ON )
|
||||||
|
ENDIF ( ASSIMP_BUILD_STATIC_LIB )
|
||||||
|
|
||||||
# Generate a pkg-config .pc for the Assimp library.
|
# Generate a pkg-config .pc for the Assimp library.
|
||||||
CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/assimp.pc.in" "${PROJECT_BINARY_DIR}/assimp.pc" @ONLY )
|
CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/assimp.pc.in" "${PROJECT_BINARY_DIR}/assimp.pc" @ONLY )
|
||||||
|
|
Loading…
Reference in New Issue