View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0009211 | CMake | Modules | public | 2009-06-26 14:12 | 2016-06-10 14:30 |
|
Reporter | Wayne Stambaugh | |
Assigned To | Miguel Figueroa | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | |
Platform | | OS | | OS Version | |
Product Version | CMake-2-6 | |
Target Version | | Fixed in Version | | |
|
Summary | 0009211: FindwxWidgets.cmake include path order causes manifest build and link errors in VC8. |
Description | The version of FindwxWidgets.cmake include in CMake 2.6.4 incorrectly sets the wxWidgets include path order using the windows find method. This causes a manifest compile and link error when building executable files with Visual Studio 2005 (VC8). For more information about this error see the "Manifest" section at http://www.wxart2d.org/moin/WxArt2dInstall. [^] The library include path should be defined before the main include path to prevent this error. I have include a patch (unified diff) against FindwxWidgets.cmake included with CMake 2.6.4.
|
Tags | No tags attached. |
|
Attached Files | vc8-manifest.patch [^] (1,086 bytes) 2009-06-26 14:12 [Show Content] [Hide Content]--- /c/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake 2008-12-31 10:14:24 -0500
+++ /e/src/kicad-trunk/CMakeModules/FindwxWidgets.cmake 2009-06-25 16:19:35 -0400
@@ -546,9 +546,14 @@
SET(wxWidgets_FOUND FALSE)
ENDIF(EXISTS ${WX_ROOT_DIR}/include/wx/wx.h)
- # Set wxWidgets lib setup include directory.
+ # Set wxWidgets lib setup include directory before the main include
+ # directory to prevent Visual Studio 2005 manifest build and link
+ # errors. For more information, see the Manifest section at:
+ #
+ # http://www.wxart2d.org/moin/WxArt2dInstall
+ #
IF(EXISTS ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h)
- LIST(APPEND wxWidgets_INCLUDE_DIRS
+ LIST(INSERT wxWidgets_INCLUDE_DIRS 0
${WX_LIB_DIR}/${wxWidgets_CONFIGURATION})
ELSE(EXISTS ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h)
DBG_MSG("WXWIDGET_FOUND FALSE because ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h does not exists.")
|
|