opnsense-ports/audio/audacity/files/patch-cmake-proxies_cmake-modules_dependencies_wxwidgets.cmake
Franco Fichtner ee2783e293 */*: sync with upstream
Taken from: FreeBSD
2021-11-01 15:57:04 +01:00

14 lines
682 B
CMake

--- cmake-proxies/cmake-modules/dependencies/wxwidgets.cmake.orig 2021-08-27 06:00:39 UTC
+++ cmake-proxies/cmake-modules/dependencies/wxwidgets.cmake
@@ -1,4 +1,10 @@
-if( ${_OPT}use_wxwidgets STREQUAL "system" )
+if( ${_OPT}use_wxwidgets STREQUAL "system" OR NOT ${_OPT}conan_enabled )
+ # DV: find_package will be scoped, as FindwxWidgets.cmake is rather outdated.
+ # Still - let's perform the sanity check first.
+ if( NOT wxWidgets_FOUND )
+ find_package( wxWidgets REQUIRED COMPONENTS adv base core html qa xml net )
+ endif()
+
if( NOT TARGET wxwidgets::wxwidgets )
add_library( wxwidgets::wxwidgets INTERFACE IMPORTED GLOBAL)
endif()