Commit 5ea664a3 authored by Daniel Wortmann's avatar Daniel Wortmann

Updated c test for XML to make sure it does not use the Fortran link options.

parent aca71a29
......@@ -21,12 +21,12 @@ message("XML Library found for linking:${FLEUR_USE_XML}")
if (FLEUR_USE_XML)
try_compile(FLEUR_USE_XML ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_XML.c
LINK_LIBRARIES ${FLEUR_LIBRARIES})
LINK_LIBRARIES "-lxml2")
if (NOT FLEUR_USE_XML)
find_package(LibXml2)
set(CMAKE_C_FLAGS "-I${LIBXML2_INCLUDE_DIR}")
try_compile(FLEUR_USE_XML ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_XML.c
LINK_LIBRARIES ${FLEUR_LIBRARIES})
LINK_LIBRARIES ${LIBXML2_LIBRARIES})
endif()
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment