Commit 42dda6e9 authored by David E. DeMarle's avatar David E. DeMarle

fix windows compilation

XdmfLibraries and XdmfDSMLinkLibraries are undefined and this we
get undefined symbol errors.
parent 8fc5f670
...@@ -401,20 +401,12 @@ if(NOT XDMF_BUILD_CORE_ONLY) ...@@ -401,20 +401,12 @@ if(NOT XDMF_BUILD_CORE_ONLY)
SOVERSION ${XDMF_MAJOR_VERSION} SOVERSION ${XDMF_MAJOR_VERSION}
) )
if(XDMF_BUILD_DSM) if(XDMF_BUILD_DSM)
if (NOT WIN32) target_link_libraries(${XDMF_LIBNAME} XdmfCore XdmfDSM)
target_link_libraries(${XDMF_LIBNAME} XdmfCore XdmfDSM)
else ()
target_link_libraries(${XDMF_LIBNAME} ${XdmfLibraries} ${XdmfDSMLinkLibraries})
endif ()
if(XDMF_STATIC_AND_SHARED AND BUILD_SHARED_LIBS) if(XDMF_STATIC_AND_SHARED AND BUILD_SHARED_LIBS)
target_link_libraries(Xdmf_Static XdmfCore_Static XdmfDSM_Static) target_link_libraries(Xdmf_Static XdmfCore_Static XdmfDSM_Static)
endif() endif()
else(XDMF_BUILD_DSM) else(XDMF_BUILD_DSM)
if (NOT WIN32) target_link_libraries(${XDMF_LIBNAME} XdmfCore)
target_link_libraries(${XDMF_LIBNAME} XdmfCore)
else ()
target_link_libraries(${XDMF_LIBNAME} ${XdmfLibraries})
endif ()
if(XDMF_STATIC_AND_SHARED AND BUILD_SHARED_LIBS) if(XDMF_STATIC_AND_SHARED AND BUILD_SHARED_LIBS)
target_link_libraries(Xdmf_Static XdmfCore_Static) target_link_libraries(Xdmf_Static XdmfCore_Static)
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