Move compiler flags configuration to a new file (config/compilerFlags.cmake).

Also define the PSAPI_VERSION only for the exiv2lib target (It's not needed for the rest of targets)
This commit is contained in:
Luis Díaz Más
2017-08-21 00:15:55 +02:00
parent 6175aa4f3f
commit a2bb29011d
3 changed files with 21 additions and 20 deletions
+2
View File
@@ -218,6 +218,8 @@ if (EXIV2_ENABLE_WEBREADY AND EXIV2_ENABLE_SSH)
endif()
if ( MSVC )
target_compile_definitions(exiv2lib PRIVATE PSAPI_VERSION=1) # to be compatible with <= WinVista (#905)
if ( EXIV2_ENABLE_STATIC )
TARGET_LINK_LIBRARIES( exiv2lib zlibstatic ${ZLIB_LIBRARIES} )
else()