mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- xerces fix for cmake compile if static libs are missing
This commit is contained in:
@@ -70,11 +70,18 @@ IF (XERCESC_STATIC)
|
|||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
)
|
)
|
||||||
ADD_DEFINITIONS( -DXERCES_STATIC_LIBRARY )
|
IF(XERCESC_FOUND)
|
||||||
IF(UNIX AND NOT APPLE)
|
ADD_DEFINITIONS( -DXERCES_STATIC_LIBRARY )
|
||||||
SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY} -Bdynamic -licuuc -licudata")
|
|
||||||
|
IF(UNIX AND NOT APPLE)
|
||||||
|
SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY} -Bdynamic -licuuc -licudata")
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE (XERCESC_STATIC)
|
ENDIF()
|
||||||
|
|
||||||
|
IF(XERCESC_FOUND)
|
||||||
|
|
||||||
|
ELSE()
|
||||||
FIND_LIBRARY(XERCESC_LIBRARY NAMES xerces-c_3 xerces-c xerces-c_3 xerces-c2_8_0 xerces-c_2 Xerces
|
FIND_LIBRARY(XERCESC_LIBRARY NAMES xerces-c_3 xerces-c xerces-c_3 xerces-c2_8_0 xerces-c_2 Xerces
|
||||||
PATHS
|
PATHS
|
||||||
$ENV{XERCESC_LIBRARY_DIR}
|
$ENV{XERCESC_LIBRARY_DIR}
|
||||||
@@ -85,7 +92,7 @@ ELSE (XERCESC_STATIC)
|
|||||||
$ENV{XERCESC_LIBRARY_DIR}
|
$ENV{XERCESC_LIBRARY_DIR}
|
||||||
${XERCESC_LIBRARY_DIR}
|
${XERCESC_LIBRARY_DIR}
|
||||||
)
|
)
|
||||||
ENDIF (XERCESC_STATIC)
|
ENDIF()
|
||||||
|
|
||||||
IF (XERCESC_INCLUDE AND XERCESC_LIBRARY)
|
IF (XERCESC_INCLUDE AND XERCESC_LIBRARY)
|
||||||
SET(XERCESC_FOUND TRUE)
|
SET(XERCESC_FOUND TRUE)
|
||||||
|
Reference in New Issue
Block a user