X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e46051f911b3b510d33064db408bd504455b86e..917afc7b81c6f806ea3d50b455f7c4e320ecd68f:/distrib/msw/tmake/vc6app.t diff --git a/distrib/msw/tmake/vc6app.t b/distrib/msw/tmake/vc6app.t index b5bdeae142..d16d0fd716 100644 --- a/distrib/msw/tmake/vc6app.t +++ b/distrib/msw/tmake/vc6app.t @@ -23,18 +23,6 @@ if ( Config("wx") && !Config("wxbase") ) { Project('CONFIG += windows'); } - if ( Config("wx") ) { - if ( Config("wxnodir") ) { - #! hard code relative paths - $WXDIR = "..\\.."; - } - else { - #! VC 6.0 supports env vars in include path - $WXDIR = "\$(WXWIN)"; - } - - AddIncludePath("$WXDIR\\include"); - } #! let's be smart: if no extension is given, add .lib (this allows for #! LIBS=libname in project files which map either to -l libname.lib under @@ -80,6 +68,12 @@ } if ( Config("wx") ) { + #! default rel path works for all the demos and most of the samples + #! if no explicit path given + $WXDIR = Project("WXDIR") || "..\\.."; + + AddIncludePath("$WXDIR\\include"); + if ( !Project('WXCONFIGS') ) { #! default value Project('WXCONFIGS = Debug Release DebugDll ReleaseDll');