View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001651CMakepublic2005-03-07 13:272005-11-28 15:30
ReporterAnton Deguet 
Assigned ToBill Hoffman 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001651: FindwxWindows.cmake doesn't define INCLUDE_DIR on Unix
DescriptionIt seems that the creator of FindwxWindows decided to use CMAKE_CXX_FLAGS to define the include directory on Unix as opposed to WXWINDOWS_INCLUDE_DIR as specified in the header of the file (and implemented for Windows). This is not as portable as the rest of CMake since one has to use:

# Find wxWidgets
FIND_PACKAGE(wxWidgets REQUIRED)
IF(WXWINDOWS_INCLUDE_DIR)
  INCLUDE_DIRECTORIES(${WXWINDOWS_INCLUDE_DIR})
ELSE(WXWINDOWS_INCLUDE_DIR)
  SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${CMAKE_WXWINDOWS_CXX_FLAGS})
ENDIF(WXWINDOWS_INCLUDE_DIR)
LINK_DIRECTORIES(${WXWINDOWS_LINK_DIRECTORIES})
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002284)
Bill Hoffman (manager)
2005-04-05 13:43

I think this is because on unix it uses wxconfig --cxxflags. Looks like there is some stuff in there to extract -L paths, I suppose the same could be done for -I paths. I don't have wx on my machine so I can not test this, if someone wants to submit a patch, I can put it in cvs.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team