Fix wrappture_example build

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2020-08-20 01:59:17 +02:00
parent 0edaa7d12a
commit ed3747db5c
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
2 changed files with 9 additions and 4 deletions

View File

@ -91,8 +91,13 @@ add_library(rappture ${SRC_RAPPTURE_CORE})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/core/)
find_package(EXPAT REQUIRED)
target_link_libraries(rappture PRIVATE EXPAT::EXPAT)
find_package(expat CONFIG REQUIRED)
if(WIN32 AND NOT MINGW)
target_link_libraries(rappture PRIVATE expat::libexpat)
else()
target_link_libraries(rappture PRIVATE expat::expat)
endif()
install(TARGETS rappture
RUNTIME DESTINATION bin

View File

@ -98,7 +98,7 @@
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<AdditionalDependencies>rappture.lib;expat.lib;libcmt.lib;libcpmt.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>rappture.lib;libexpatMD.lib;libcmt.lib;libcpmt.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SuppressStartupBanner>true</SuppressStartupBanner>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs>
@ -141,7 +141,7 @@
<Culture>0x0409</Culture>
</ResourceCompile>
<Link>
<AdditionalDependencies>rappture.lib;expat.lib;libcmtd.lib;libcpmtd.lib;kernel32.lib;user32.lib;gdi32.lib;ole32.lib;zlibd.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>rappture.lib;libexpatdMD.lib;libcmtd.lib;libcpmtd.lib;kernel32.lib;user32.lib;gdi32.lib;ole32.lib;zlibd.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SuppressStartupBanner>true</SuppressStartupBanner>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs>