CMake: Catch troublesome build combinations for -DEXPAT_CHAR_TYPE=ushort
This commit is contained in:
parent
5aa6475ca5
commit
db01810bf3
@ -111,6 +111,12 @@ if(EXPAT_CHAR_TYPE STREQUAL "char")
|
||||
elseif(EXPAT_CHAR_TYPE STREQUAL "ushort")
|
||||
set(_EXPAT_UNICODE ON)
|
||||
set(_EXPAT_UNICODE_WCHAR_T OFF)
|
||||
if(EXPAT_BUILD_EXAMPLES)
|
||||
message(SEND_ERROR "Examples can not be built with option -DEXPAT_CHAR_TYPE=ushort. Please pass -DEXPAT_CHAR_TYPE=(char|wchar_t) or -DEXPAT_BUILD_EXAMPLES=OFF.")
|
||||
endif()
|
||||
if(EXPAT_BUILD_TESTS)
|
||||
message(SEND_ERROR "The testsuite can not be built with option -DEXPAT_CHAR_TYPE=ushort. Please pass -DEXPAT_CHAR_TYPE=(char|wchar_t) or -DEXPAT_BUILD_TESTS=OFF.")
|
||||
endif()
|
||||
if(EXPAT_BUILD_TOOLS)
|
||||
message(SEND_ERROR "The xmlwf tool can not be built with option -DEXPAT_CHAR_TYPE=ushort. Please pass -DEXPAT_CHAR_TYPE=(char|wchar_t) or -DEXPAT_BUILD_TOOLS=OFF.")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user