Fix #2138 on next branch
This commit is contained in:
@@ -1,52 +1,54 @@
|
|||||||
# Locate Xsd from code synthesis include paths and binary
|
# Locate Xsd from code synthesis include paths and binary
|
||||||
# Xsd can be found at http://codesynthesis.com/products/xsd/
|
# Xsd can be found at http://codesynthesis.com/products/xsd/
|
||||||
# Written by Frederic Heem, frederic.heem _at_ telsey.it
|
# Written by Frederic Heem, frederic.heem _at_ telsey.it
|
||||||
|
|
||||||
# This module defines
|
# This module defines
|
||||||
# XSD_INCLUDE_DIR, where to find elements.hxx, etc.
|
# XSD_INCLUDE_DIR, where to find elements.hxx, etc.
|
||||||
# XSD_EXECUTABLE, where is the xsd compiler
|
# XSD_EXECUTABLE, where is the xsd compiler
|
||||||
# XSD_FOUND, If false, don't try to use xsd
|
# XSD_FOUND, If false, don't try to use xsd
|
||||||
|
|
||||||
FIND_PATH( XSD_INCLUDE_DIR xsd/cxx/parser/elements.hxx
|
FIND_PATH( XSD_INCLUDE_DIR xsd/cxx/parser/elements.hxx
|
||||||
"/opt/local/xsd-3.3.0-i686-macosx/libxsd"
|
"/opt/local/xsd-3.3.0-i686-macosx/libxsd"
|
||||||
"C:/Programs/xsd-3.3.0/libxsd"
|
"C:/Programs/xsd-3.3.0/libxsd"
|
||||||
"C:/Program Files/CodeSynthesis XSD 3.2/include"
|
"C:/Program Files/CodeSynthesis XSD 3.2/include"
|
||||||
"C:/mingw/xsd-3.3.0-i686-windows/libxsd"
|
"C:/mingw/xsd-3.3.0-i686-windows/libxsd"
|
||||||
$ENV{XSDDIR}/include
|
$ENV{XSDDIR}/include
|
||||||
$ENV{CODESYNTH}/include
|
$ENV{CODESYNTH}/include
|
||||||
/usr/local/include /usr/include
|
/usr/local/include /usr/include
|
||||||
)
|
$ENV{XSDDIR}/libxsd
|
||||||
|
)
|
||||||
IF( WIN32 )
|
|
||||||
SET( XSDCXX_FILENAME1 xsd-cxx.exe )
|
IF( WIN32 )
|
||||||
ELSE( )
|
SET( XSDCXX_FILENAME1 xsd-cxx.exe )
|
||||||
SET( XSDCXX_FILENAME1 xsdcxx )
|
ELSE( )
|
||||||
SET( XSDCXX_FILENAME2 xsd )
|
SET( XSDCXX_FILENAME1 xsdcxx )
|
||||||
ENDIF( )
|
SET( XSDCXX_FILENAME2 xsd )
|
||||||
|
ENDIF( )
|
||||||
FIND_PROGRAM( XSDCXX_EXECUTABLE
|
|
||||||
NAMES
|
FIND_PROGRAM( XSDCXX_EXECUTABLE
|
||||||
${XSDCXX_FILENAME1} ${XSDCXX_FILENAME2}
|
NAMES
|
||||||
|
${XSDCXX_FILENAME1} ${XSDCXX_FILENAME2}
|
||||||
PATHS
|
PATHS
|
||||||
"/opt/local/xsd-3.3.0-i686-macosx/bin"
|
"/opt/local/xsd-3.3.0-i686-macosx/bin"
|
||||||
"C:/Programs/xsd-3.3.0/bin"
|
"C:/Programs/xsd-3.3.0/bin"
|
||||||
"C:/mingw/xsd-3.3.0-i686-windows/bin"
|
"C:/mingw/xsd-3.3.0-i686-windows/bin"
|
||||||
"C:/Program Files/CodeSynthesis XSD 3.2/bin"
|
"C:/Program Files/CodeSynthesis XSD 3.2/bin"
|
||||||
$ENV{XSDDIR}/bin
|
$ENV{XSDDIR}/bin
|
||||||
/usr/local/bin
|
/usr/local/bin
|
||||||
/usr/bin
|
/usr/bin
|
||||||
)
|
$ENV{XSDDIR}/xsd
|
||||||
|
)
|
||||||
MESSAGE(STATUS ${XSDCXX_EXECUTABLE})
|
|
||||||
|
MESSAGE(STATUS ${XSDCXX_EXECUTABLE})
|
||||||
# if the include and the program are found then we have it
|
|
||||||
IF( XSD_INCLUDE_DIR )
|
# if the include and the program are found then we have it
|
||||||
IF( XSDCXX_EXECUTABLE )
|
IF( XSD_INCLUDE_DIR )
|
||||||
SET( XSD_FOUND "YES" )
|
IF( XSDCXX_EXECUTABLE )
|
||||||
ENDIF( XSDCXX_EXECUTABLE )
|
SET( XSD_FOUND "YES" )
|
||||||
ENDIF( XSD_INCLUDE_DIR )
|
ENDIF( XSDCXX_EXECUTABLE )
|
||||||
|
ENDIF( XSD_INCLUDE_DIR )
|
||||||
MARK_AS_ADVANCED(
|
|
||||||
XSD_INCLUDE_DIR
|
MARK_AS_ADVANCED(
|
||||||
XSDCXX_EXECUTABLE
|
XSD_INCLUDE_DIR
|
||||||
)
|
XSDCXX_EXECUTABLE
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user