View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001651 | CMake | public | 2005-03-07 13:27 | 2005-11-28 15:30 | |||||
Reporter | Anton Deguet | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | low | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001651: FindwxWindows.cmake doesn't define INCLUDE_DIR on Unix | ||||||||
Description | It 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}) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |