View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006478CMakeCCMakepublic2008-02-29 02:242008-06-16 14:28
ReporterWerner 
Assigned ToMiguel Figueroa 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006478: Modul FindwxWidgets.cmake doesn't work with MinGW/native Windows CLI
DescriptionIf MinGW is used in a native Windows CLI (opposed of using MinGW in MSys environment) FindwxWidgets.cmake tries to find the wxWidgets library the unix way (wx-config) which is not successful.
Additional InformationThe solution of this problem is to change the code part

IF(WIN32)
 SET(WIN32_STYLE_FIND 1)
ENDIF(WIN32)
IF(MINGW)
 SET(WIN32_STYLE_FIND 1)
 SET(UNIX_STYLE_FIND 0)
ENDIF(MINGW)
IF(UNIX)
 SET(UNIX_STYLE_FIND 1)
ENDIF(UNIX)

to something like

IF(WIN32)
 SET(WIN32_STYLE_FIND 1)
ENDIF(WIN32)
IF(UNIX OR MSYS)
 SET(UNIX_STYLE_FIND 1)
ENDIF(UNIX OR MSYS)

or maybe nicer would be

IF(WIN32 AND NOT CYGWIN AND NOT MSYS)
 SET(WIN32_STYLE_FIND 1)
ELSE(WIN32 AND NOT CYGWIN AND NOT MSYS)
 SET(UNIX_STYLE_FIND 1)
ENDIF(WIN32 AND NOT CYGWIN AND NOT MSYS)

since cygwin and msys are the only cases on windows where the unix_style_find way would work. Though I'm not sure if cygwin and msys are set but I'm quite sure.

Thanks,
Werner
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0012349)
Miguel Figueroa (developer)
2008-06-16 14:28

Commited the following change in rev. 1.21.

IF(WIN32 AND NOT CYGWIN)
  SET(wxWidgets_FIND_STYLE "win32")
ELSE(WIN32 AND NOT CYGWIN)
  IF(UNIX)
    SET(wxWidgets_FIND_STYLE "unix")
  ENDIF(UNIX)
ENDIF(WIN32 AND NOT CYGWIN)

Now, MinGW, Windows (not cygwin), and MSYS will choose win32 style
and unix (including cygwin and apple osx) will choose unix style.

--Miguel

 Issue History
Date Modified Username Field Change
2008-02-29 02:24 Werner New Issue
2008-03-01 17:01 Miguel Figueroa Status new => assigned
2008-03-01 17:01 Miguel Figueroa Assigned To => Miguel Figueroa
2008-06-16 14:28 Miguel Figueroa Status assigned => closed
2008-06-16 14:28 Miguel Figueroa Note Added: 0012349
2008-06-16 14:28 Miguel Figueroa Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team