mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
bifcl: Add /J flag on Windows to force unsigned char
This commit is contained in:
parent
3004675015
commit
af0c68c183
1 changed files with 7 additions and 6 deletions
|
@ -9,16 +9,17 @@ FindRequiredPackage(BISON)
|
||||||
FindRequiredPackage(FLEX)
|
FindRequiredPackage(FLEX)
|
||||||
|
|
||||||
if ( MISSING_PREREQS )
|
if ( MISSING_PREREQS )
|
||||||
foreach (prereq ${MISSING_PREREQ_DESCS})
|
foreach (prereq ${MISSING_PREREQ_DESCS})
|
||||||
message(SEND_ERROR ${prereq})
|
message(SEND_ERROR ${prereq})
|
||||||
endforeach ()
|
endforeach ()
|
||||||
message(FATAL_ERROR "Configuration aborted due to missing prerequisites")
|
message(FATAL_ERROR "Configuration aborted due to missing prerequisites")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "/wd4018")
|
add_compile_options(/J) # Similar to -funsigned-char on other platforms
|
||||||
|
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "/wd4018")
|
||||||
else()
|
else()
|
||||||
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
|
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
include_directories(BEFORE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue