Use both root paths when looking for Wine headers, and disable them by default

This commit is contained in:
Chris Robinson
2011-07-13 01:49:43 -07:00
parent 17773c5644
commit 99bcb7a0f6
+3 -2
View File
@@ -166,12 +166,13 @@ ENDIF()
IF(WIN32)
SET(EXPORT_DECL "__declspec(dllexport)")
OPTION(WINE "Enable use of Wine headers when compiling" ON)
OPTION(WINE "Enable use of Wine headers when compiling" OFF)
IF(WINE)
FIND_PATH(WINE_INCLUDE_DIR library.h
PATHS
/usr/include/wine
/usr/local/include/wine)
/usr/local/include/wine
CMAKE_FIND_ROOT_PATH_BOTH)
IF(WINE_INCLUDE_DIR)
MESSAGE(STATUS "Found Wine header files - ${WINE_INCLUDE_DIR}" )
INCLUDE_DIRECTORIES("${WINE_INCLUDE_DIR}/windows")