diff --git a/build/cmake/lib/xml/CMakeLists.txt b/build/cmake/lib/xml/CMakeLists.txt index 3afb4dccbd..718f5f64ad 100644 --- a/build/cmake/lib/xml/CMakeLists.txt +++ b/build/cmake/lib/xml/CMakeLists.txt @@ -9,12 +9,17 @@ include(../../source_groups.cmake) +if(WIN32) + set(EXPAT_POSTFIX $<$:d>) +endif(WIN32) + if(wxUSE_EXPAT STREQUAL "builtin") ExternalProject_Add(wxexpat DOWNLOAD_COMMAND "" SOURCE_DIR ${wxSOURCE_DIR}/src/expat/expat CMAKE_ARGS -DCMAKE_INSTALL_PREFIX= + -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_tools=OFF -DBUILD_examples=OFF -DBUILD_tests=OFF @@ -25,7 +30,7 @@ if(wxUSE_EXPAT STREQUAL "builtin") ${CMAKE_COMMAND} -E make_directory /wxlib COMMAND ${CMAKE_COMMAND} -E rename - /lib/${CMAKE_STATIC_LIBRARY_PREFIX}expat${CMAKE_STATIC_LIBRARY_SUFFIX} + /lib/${CMAKE_STATIC_LIBRARY_PREFIX}expat${EXPAT_POSTFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} /wxlib/${CMAKE_STATIC_LIBRARY_PREFIX}wxexpat$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX} ) ExternalProject_Get_Property(wxexpat INSTALL_DIR)