mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add /J flag on Windows to force unsigned char
This commit is contained in:
parent
df80e344b7
commit
d5e2531b2f
1 changed files with 5 additions and 2 deletions
|
@ -96,8 +96,10 @@ if (MSVC)
|
|||
endforeach ()
|
||||
|
||||
# Set compilation flags for Windows
|
||||
add_compile_options(/guard:cf # required by CheckCFlags
|
||||
/Z7) # required by CheckCFlags
|
||||
add_compile_options(
|
||||
/guard:cf # required by CheckCFlags
|
||||
/Z7 # required by CheckCFlags
|
||||
/J) # Similar to -funsigned-char on other platforms
|
||||
|
||||
add_link_options(/debug:full # required by CheckCFlags
|
||||
)
|
||||
|
@ -149,6 +151,7 @@ if (MSVC)
|
|||
set(UNISTD_INCLUDES ${CMAKE_SOURCE_DIR}/auxil/libunistd/unistd
|
||||
${CMAKE_SOURCE_DIR}/auxil/libunistd/regex)
|
||||
include_directories(BEFORE ${UNISTD_INCLUDES})
|
||||
|
||||
# Required for `check_include_files` to operate correctly
|
||||
list(APPEND CMAKE_REQUIRED_INCLUDES ${UNISTD_INCLUDES})
|
||||
list(APPEND zeekdeps libunistd libregex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue