View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0009560 | CMake | Modules | public | 2009-09-17 13:56 | 2016-06-10 14:31 |
|
Reporter | jlblanco | |
Assigned To | Miguel Figueroa | |
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | moved | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0009560: A patch to enable re-detecting wx libs when BUILD_SHARED_LIBS is changed by the user |
Description | The title says it all :-)
When a user changes manually BUILD_SHARED_LIBS, it's annoying that wx libs are still selected for the former configuration (eg. vc_lib/vc_dll), hence this patch.
I hope it's quickly accepted since I think it may have no side effects.
Regards,
JL |
Tags | No tags attached. |
|
Attached Files | FindwxWidgets.diff [^] (1,138 bytes) 2009-09-17 13:56 [Show Content] [Hide Content]--- C:/Archivos de programa/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets_org.cmake jue sep 17 19:48:00 2009
+++ C:/Archivos de programa/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake jue sep 17 19:49:41 2009
@@ -428,13 +428,16 @@
DOC "wxWidgets base/installation directory?"
)
- # If wxWidgets_ROOT_DIR changed, clear lib dir.
- IF(NOT WX_ROOT_DIR STREQUAL wxWidgets_ROOT_DIR)
+ # If wxWidgets_ROOT_DIR or BUILD_SHARED_LIBS changed, clear lib dir.
+ IF(NOT WX_ROOT_DIR STREQUAL wxWidgets_ROOT_DIR OR NOT WX_BUILD_SHARED_LIBS STREQUAL BUILD_SHARED_LIBS)
SET(WX_ROOT_DIR ${wxWidgets_ROOT_DIR}
CACHE INTERNAL "wxWidgets_ROOT_DIR")
+ SET(WX_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}
+ CACHE INTERNAL "BUILD_SHARED_LIBS")
+
SET(wxWidgets_LIB_DIR "wxWidgets_LIB_DIR-NOTFOUND"
CACHE PATH "Cleared." FORCE)
- ENDIF(NOT WX_ROOT_DIR STREQUAL wxWidgets_ROOT_DIR)
+ ENDIF(NOT WX_ROOT_DIR STREQUAL wxWidgets_ROOT_DIR OR NOT WX_BUILD_SHARED_LIBS STREQUAL BUILD_SHARED_LIBS)
IF(WX_ROOT_DIR)
# Select one default tree inside the already determined wx tree.
|
|