- fixed cmake builds on linux

This commit is contained in:
Mark Vejvoda 2011-01-22 00:11:40 +00:00
parent 5722cb01c6
commit 8d28c35e13
2 changed files with 6 additions and 0 deletions

View File

@ -83,7 +83,10 @@
# License text for the above reference.)
INCLUDE(FindPackageMessage)
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
INCLUDE(CMakeParseArguments)
ENDIF()
# internal helper macro
MACRO(_FPHSA_FAILURE_MESSAGE _msg)

View File

@ -840,7 +840,10 @@ DBG_MSG("wxWidgets_USE_FILE : ${wxWidgets_USE_FILE}")
#=====================================================================
#=====================================================================
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
ENDIF()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(wxWidgets DEFAULT_MSG wxWidgets_FOUND)
# Maintain consistency with all other variables.
SET(wxWidgets_FOUND ${WXWIDGETS_FOUND})