View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010209CMakeModulespublic2010-01-30 18:372010-08-30 13:27
ReporterDmitry Marakasov 
Assigned ToMiguel Figueroa 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010209: FindwxWidgets.cmake is broken
DescriptionFindwxWidgets.cmake is completely broken in 2.8. When used in both ways, i.e. via INCLUDE(${wxWidgets_USE_FILE}) and with explicit INCLUDE_DIRECTORIES/ADD_DEFINITIONS it makes the build fail.

CMakeLists.txt to reproduce the problems, as well as build logs are attached.

Additional info:

% uname -a
FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386
% wxgtk2-2.8-config --cflags
-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D_THREAD_SAFE
% wxgtk2-2.8-config --libs
-L/usr/local/lib -pthread -L/usr/local/lib -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8

wxgtk2-2.8.10
cmake-2.8.0
TagsNo tags attached.
Attached Filestxt file icon log.txt [^] (4,141 bytes) 2010-01-30 18:37 [Show Content]
txt file icon newlog.txt [^] (3,786 bytes) 2010-05-05 08:56 [Show Content]
patch file icon findwxwidgets-bug-10209.patch [^] (1,241 bytes) 2010-05-09 13:56 [Show Content]

 Relationships

  Notes
(0019744)
Miguel Figueroa (developer)
2010-03-07 03:18

The correct use is with the USEFILE. Otherwise, you should use COMPILE_DEFINITIONS property.

Could you remove the comments of the debug macro at the top of the FindwxWidgets.cmake file:

MACRO(DBG_MSG _MSG)
  MESSAGE(STATUS
    "${CMAKE_CURRENT_LIST_FILE}(${CMAKE_CURRENT_LIST_LINE}): ${_MSG}")
ENDMACRO(DBG_MSG)
MACRO(DBG_MSG_V _MSG)
  MESSAGE(STATUS
    "${CMAKE_CURRENT_LIST_FILE}(${CMAKE_CURRENT_LIST_LINE}): ${_MSG}")
ENDMACRO(DBG_MSG_V)

then provide the output after running your example:

cmake -DwxWidgets_CONFIG_EXECUTABLE="/usr/local/bin/wxgtk2-2.8-config" -DWX_USEFILE:BOOL=YES . && make -DVERBOSE

Thanks,
--Miguel
(0020579)
Dmitry Marakasov (reporter)
2010-05-05 08:57
edited on: 2010-05-05 08:57

> The correct use is with the USEFILE. Otherwise, you should use COMPILE_DEFINITIONS property

Why can't it be done in a compatible way (in fact it was done so before the breakage)?

> then provide the output after running your example

Done, new log attached.

(0020687)
Miguel Figueroa (developer)
2010-05-09 13:58

Could you try the attached findwxwidgets-bug-10209.patch?

I think this should solve the problem. Note that you still need to use the wxWidgets_USE_FILE or the COMPILE_DEFINITIONS property.
(0022000)
Miguel Figueroa (developer)
2010-08-29 12:03

Fixed in the following commit:

commit c8c7b22323d8afe9d113a6e1783111057abbeedd
Merge: b817276 279b9f2
Author: Brad King <brad.king@kitware.com>
Date: Fri May 14 13:06:48 2010 -0400

 Issue History
Date Modified Username Field Change
2010-01-30 18:37 Dmitry Marakasov New Issue
2010-01-30 18:37 Dmitry Marakasov File Added: log.txt
2010-02-01 09:51 Bill Hoffman Status new => assigned
2010-02-01 09:51 Bill Hoffman Assigned To => Miguel Figueroa
2010-03-07 03:18 Miguel Figueroa Note Added: 0019744
2010-05-05 08:56 Dmitry Marakasov File Added: newlog.txt
2010-05-05 08:57 Dmitry Marakasov Note Added: 0020579
2010-05-05 08:57 Dmitry Marakasov Note Edited: 0020579
2010-05-09 13:56 Miguel Figueroa File Added: findwxwidgets-bug-10209.patch
2010-05-09 13:58 Miguel Figueroa Note Added: 0020687
2010-08-28 10:22 Kovarththanan Rajaratnam Category CMake => Modules
2010-08-29 12:03 Miguel Figueroa Note Added: 0022000
2010-08-29 12:03 Miguel Figueroa Status assigned => resolved
2010-08-29 12:03 Miguel Figueroa Resolution open => fixed
2010-08-30 13:27 Miguel Figueroa Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team