Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1d67d9bf
Commit
1d67d9bf
authored
Jan 24, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding automatic LibXml2 detection for Windows
with searching in a number of typical places.
parent
0ffc8523
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+21
-17
No files found.
storage/connect/CMakeLists.txt
View file @
1d67d9bf
...
@@ -64,25 +64,29 @@ ENDIF(UNIX)
...
@@ -64,25 +64,29 @@ ENDIF(UNIX)
# XML
# XML
#
#
IF
(
UNIX
)
IF
(
WIN32
)
FIND_PACKAGE
(
LibXml2
)
# Adding some typical places to search in
IF
(
LIBXML2_FOUND
)
SET
(
PC_LIBXML_INCLUDE_DIRS
INCLUDE_DIRECTORIES
(
${
LIBXML2_INCLUDE_DIR
}
)
C:/libxml2/include
SET
(
XML_LIBRARY
${
LIBXML2_LIBRARIES
}
)
C:/libxml/include
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabxml.cpp plgxml.cpp libdoc.cpp
)
D:/libxml/include
)
add_definitions
(
-DXML_SUPPORT
)
SET
(
PC_LIBXML_LIBRARY_DIRS
ENDIF
(
LIBXML2_FOUND
)
C:/libxml2/lib
ELSE
(
!UNIX
)
C:/libxml/lib
# Windows
D:/libxml/lib
)
# This to be localized
ENDIF
(
WIN32
)
INCLUDE_DIRECTORIES
(
"D:/Libxml/include"
)
FIND_PACKAGE
(
LibXml2
)
SET
(
XML_LIBRARY
"D:/libxml/lib/libxml2.lib"
)
IF
(
LIBXML2_FOUND
)
INCLUDE_DIRECTORIES
(
${
LIBXML2_INCLUDE_DIR
}
)
SET
(
XML_LIBRARY
${
LIBXML2_LIBRARIES
}
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabxml.cpp plgxml.cpp libdoc.cpp
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabxml.cpp plgxml.cpp libdoc.cpp
)
add_definitions
(
-DXML_SUPPORT
)
add_definitions
(
-DXML_SUPPORT
)
# Domdoc support
IF
(
WIN32
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
domdoc.cpp
)
# Domdoc support. TODO: add msxml4.dll detection.
add_definitions
(
-DDOMDOC_SUPPORT
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
domdoc.cpp
)
ENDIF
(
UNIX
)
add_definitions
(
-DDOMDOC_SUPPORT
)
ENDIF
(
WIN32
)
ENDIF
(
LIBXML2_FOUND
)
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment