From 0325639f302741bd3ae282401549fc586b48c357 Mon Sep 17 00:00:00 2001 From: "Miguel A. Figueroa-Villanueva" Date: Mon, 20 Oct 2008 11:50:04 -0400 Subject: [PATCH] BUG: Fix to find wxWidgets_LIB_DIR for windows platform more generally; supports gcc, nmake, and visual studio in all configurations. --- Modules/FindwxWidgets.cmake | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 090570423..c01e6a757 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -447,7 +447,15 @@ IF(wxWidgets_FIND_STYLE STREQUAL "win32") ENDIF(MINGW) IF(BUILD_SHARED_LIBS) FIND_PATH(wxWidgets_LIB_DIR - NAMES msw/build.cfg mswd/build.cfg msuw/build.cfg mswud/build.cfg + NAMES + msw/wx/setup.h + mswd/wx/setup.h + mswu/wx/setup.h + mswud/wx/setup.h + mswuniv/wx/setup.h + mswunivd/wx/setup.h + mswunivu/wx/setup.h + mswunivud/wx/setup.h PATHS ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_dll # prefer shared ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_lib @@ -456,7 +464,15 @@ IF(wxWidgets_FIND_STYLE STREQUAL "win32") ) ELSE(BUILD_SHARED_LIBS) FIND_PATH(wxWidgets_LIB_DIR - NAMES msw/build.cfg mswd/build.cfg msuw/build.cfg mswud/build.cfg + NAMES + msw/wx/setup.h + mswd/wx/setup.h + mswu/wx/setup.h + mswud/wx/setup.h + mswuniv/wx/setup.h + mswunivd/wx/setup.h + mswunivu/wx/setup.h + mswunivud/wx/setup.h PATHS ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_lib # prefer static ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_dll