vfs: Add check for presence of win plugin

This commit is contained in:
Christian Kamm 2018-11-13 15:30:59 +01:00 committed by Kevin Ottens
parent 4bef96afe7
commit f074c1a07b
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -1,5 +1,7 @@
### TODO: Find plugins dynamically
list(APPEND vfsPlugins "suffix") list(APPEND vfsPlugins "suffix")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/win")
list(APPEND vfsPlugins "win")
endif()
foreach(vfsPlugin ${vfsPlugins}) foreach(vfsPlugin ${vfsPlugins})
message(STATUS "Add vfsPlugin in dir: ${vfsPlugin}") message(STATUS "Add vfsPlugin in dir: ${vfsPlugin}")