diff --git a/mk/cmake/Modules/FindPackageHandleStandardArgs.cmake b/mk/cmake/Modules/FindPackageHandleStandardArgs.cmake index 1acb021e8..78c16c942 100644 --- a/mk/cmake/Modules/FindPackageHandleStandardArgs.cmake +++ b/mk/cmake/Modules/FindPackageHandleStandardArgs.cmake @@ -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) diff --git a/mk/cmake/Modules/FindwxWidgets.cmake b/mk/cmake/Modules/FindwxWidgets.cmake index 65412a91f..095879788 100644 --- a/mk/cmake/Modules/FindwxWidgets.cmake +++ b/mk/cmake/Modules/FindwxWidgets.cmake @@ -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})