mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
CMake: Add -DYY_NO_UNISTD_H definition to built flex sources
This commit is contained in:
parent
3f6a8b88c0
commit
f8039c0bc8
@ -74,4 +74,8 @@ function(add_flex_target output_cxx input_lxx)
|
|||||||
${commands}
|
${commands}
|
||||||
DEPENDS ${depends})
|
DEPENDS ${depends})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set_source_files_properties(${outputs} PROPERTIES COMPILE_DEFINITIONS YY_NO_UNISTD_H=1)
|
||||||
|
endif()
|
||||||
endfunction(add_flex_target)
|
endfunction(add_flex_target)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user