Hi Miguel,
Well, Bob is setting wxWidgets_LIB_DIR in the GUI and this should then
work for him (it's the same that you are doing with the -D param). And
from the listing Bob sent me it seems that after we find
wxWidgets_LIB_DIR correctly the rest is good to go.
Have you tried it with static libs. That is,
-DwxWidgets_LIB_DIR=%WXWIN%\lib\gcc_lib ??
No, I never tried that, I need the dll for my program.
In any case, the attached file should not require you to specify the
wxWidgets_LIB_DIR anymore.
[...]
Great, so test the attached file and let me know if it works!
I tested it, and it doesn't work, although wxWidgets_LIB_DIR is set
correctly for MinGW. But the problem is, that the module looks for the
wrong libraries:
FIND_PATH(wxWidgets_LIB_DIR
NAMES wxpng.lib wxpngd.lib
PATHS
${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_dll # prefer shared
${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_lib
DOC "Path to wxWidgets libraries?"
NO_DEFAULT_PATH
)
The MinGW compiler toolset adheres to the library naming convention
for Linux and therefore the corresponding libraries are called
libwxpng.a and libwxpngd.a
So either add these names to NAME, or use another variable? I think
any other windows compiler would name the library wxpng.lib.
HTH,
Werner
--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: [EMAIL PROTECTED]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake