Fix a minor bug in FindwxWidgets.cmake version.h path search.
This commit is contained in:
parent
e617c5e6b1
commit
21ca86573f
|
@ -857,7 +857,7 @@ endif(wxWidgets_FIND_STYLE STREQUAL "win32")
|
||||||
|
|
||||||
# Check if a specfic version was requested by find_package().
|
# Check if a specfic version was requested by find_package().
|
||||||
if(wxWidgets_FOUND AND wxWidgets_FIND_VERSION)
|
if(wxWidgets_FOUND AND wxWidgets_FIND_VERSION)
|
||||||
find_file(_filename wx/version.h PATHS ${wxWidgets_INCLUDE_DIRS})
|
find_file(_filename wx/version.h PATHS ${wxWidgets_INCLUDE_DIRS} NO_DEFAULT_PATH)
|
||||||
dbg_msg("_filename: ${_filename}")
|
dbg_msg("_filename: ${_filename}")
|
||||||
|
|
||||||
if(NOT _filename)
|
if(NOT _filename)
|
||||||
|
|
Loading…
Reference in New Issue