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:
Micah Snyder 2022-07-14 17:42:48 -07:00 committed by Micah Snyder
parent 1eb8a88ca4
commit e60843a6a0

View file

@ -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.