From f7d8a412cf09d4d61690c2bed021452c09c96311 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Mon, 15 Feb 2016 18:50:48 +0100 Subject: [PATCH] FindwxWidgets.cmake: Determine version even when not asked to --- CMakeModules/FindwxWidgets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/FindwxWidgets.cmake b/CMakeModules/FindwxWidgets.cmake index 56ba443ac2..16c405f92d 100644 --- a/CMakeModules/FindwxWidgets.cmake +++ b/CMakeModules/FindwxWidgets.cmake @@ -858,7 +858,7 @@ else() endif() # Check if a specfic version was requested by find_package(). -if(wxWidgets_FOUND AND wxWidgets_FIND_VERSION) +if(wxWidgets_FOUND) find_file(_filename wx/version.h PATHS ${wxWidgets_INCLUDE_DIRS} NO_DEFAULT_PATH) DBG_MSG("_filename: ${_filename}")