Skip to content

Commit

Permalink
Merge pull request #261 from climbfuji/remove_libxml2
Browse files Browse the repository at this point in the history
release/public-v4: remove reference to libxml2
  • Loading branch information
climbfuji authored Feb 6, 2020
2 parents 826b1b9 + a6e4dc6 commit eb9e33b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,6 @@ foreach(source_f90 ${SOURCES_F90})
list(APPEND MODULES_F90 ${CMAKE_CURRENT_BINARY_DIR}/${module_f90})
endforeach()

#------------------------------------------------------------------------------
# Find/set libXML2
if(LIBXML2_LIB_DIR AND LIBXML2_INCLUDE_DIR)
include_directories(${LIBXML2_INCLUDE_DIR})
if (STATIC)
list(APPEND LIBS "${LIBXML2_LIB_DIR}/libxml2.a")
else (STATIC)
if(APPLE)
list(APPEND LIBS "${LIBXML2_LIB_DIR}/libxml2.dylib")
elseif(UNIX)
list(APPEND LIBS "${LIBXML2_LIB_DIR}/libxml2.so")
else (APPLE)
message (FATAL_ERROR "Unsupported platform, only Linux and MacOSX are supported at this time.")
endif(APPLE)
endif (STATIC)
else(LIBXML2_LIB_DIR AND LIBXML2_INCLUDE_DIR)
find_package(LibXml2 REQUIRED)
if(LIBXML2_FOUND)
include_directories(${LIBXML2_INCLUDE_DIR})
list(APPEND LIBS ${LIBXML2_LIBRARIES})
endif(LIBXML2_FOUND)
endif(LIBXML2_LIB_DIR AND LIBXML2_INCLUDE_DIR)

#------------------------------------------------------------------------------
# CMake Modules
# Set the CMake module path
Expand Down

0 comments on commit eb9e33b

Please sign in to comment.