Files
MINGW-packages/mingw-w64-openshadinglanguage-git/0002-dont-add-flex-include-dir.patch

24 lines
1.2 KiB
Diff

--- OpenShadingLanguage-Release-1.4.0.orig/src/cmake/flexbison.cmake 2013-11-25 18:41:29.000000000 +0000
+++ OpenShadingLanguage-Release-1.4.0/src/cmake/flexbison.cmake 2014-01-03 20:21:43.305332000 +0000
@@ -59,6 +59,8 @@
# MESSAGE (STATUS " src list now ${${srclist}}")
# MESSAGE (STATUS " compiler headers = ${${compiler_headers}}")
+ # Do not do this as it adds C:/msys64/include to the search path
+ # for all compilation.
# Be really sure that we prefer the FlexLexer.h that comes with
# the flex binary we're using, not some other one in the system.
GET_FILENAME_COMPONENT ( FLEX_UP ${FLEX_EXECUTABLE} PATH )
@@ -67,7 +69,10 @@
if (VERBOSE)
MESSAGE (STATUS "Flex include dir = ${FLEX_INCLUDE_DIR}")
endif ()
- INCLUDE_DIRECTORIES ( ${FLEX_INCLUDE_DIR} )
+ # INCLUDE_DIRECTORIES ( ${FLEX_INCLUDE_DIR} )
+ # Instead try ..
+ MESSAGE (STATUS " FLEX_INCLUDE_DIR ${FLEX_INCLUDE_DIR}")
+ file(COPY ${FLEX_INCLUDE_DIR}/FlexLexer.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR} )
INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_SOURCE_DIR} )