mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
CMake, UnRAR: Don't compile Windows-only code
The file 'isnt.cpp' (is NT) contains code that is only ever needed in Windows builds. Changes since UnRAR 6.0.7 break the build for this file on non-Windows systems. This commit only builds 'isnt.cpp' when on Windows.
This commit is contained in:
parent
1eb8a88ca4
commit
e60843a6a0
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,6 @@ set( UNRAR_SOURCES
|
|||
global.cpp
|
||||
hash.cpp
|
||||
headers.cpp
|
||||
isnt.cpp
|
||||
list.cpp
|
||||
match.cpp
|
||||
options.cpp
|
||||
|
@ -62,6 +61,9 @@ set( UNRAR_SOURCES
|
|||
unpack.cpp
|
||||
volume.cpp
|
||||
)
|
||||
if(WIN32)
|
||||
list(APPEND UNRAR_SOURCES isnt.cpp)
|
||||
endif()
|
||||
|
||||
if(ENABLE_SHARED_LIB)
|
||||
# The unrar shared library.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue