CodeLiteDir using \ and confusing gcc
Posted: Tue May 14, 2013 7:43 am
I've noticed CodeLite setes the CodeLiteDir variable using a backslash and that seems to confuse gcc when it is used to build up longer paths.
This is my Env Vars:
If I try to say build a UnitTest++ project, it produces this:
g++ -c "C:/Users/Andrew/Desktop/clut/main.cpp" -g -o Debug/main.o -I. -IC:\CodeLite\UnitTest++-1.3/src -I.
And g++ complains about a missing header.
If I force add:
-Ic:/CodeLite/UnitTest++-1.3/src
Everything builds OK (well linker dies because of the same issue...)
How do I get the built in vars to handle slashes appropriately?
This is my Env Vars:
Code: Select all
CodeLiteDir=C:\CodeLite
WXWIN=$(CodeLiteDir)/wxWidgets-2.9.4
PATH=$(WXWIN)/lib/gcc_dll;$(CodeLiteDir);$(CodeLiteDir)/MinGW-4.4.1/bin;$(CodeLiteDir)/wxWidgets-2.9.4/lib/gcc_dll;$(PATH)
WXCFG=gcc_dll/mswu
UNIT_TEST_PP_SRC_DIR=$(CodeLiteDir)\UnitTest++-1.3
g++ -c "C:/Users/Andrew/Desktop/clut/main.cpp" -g -o Debug/main.o -I. -IC:\CodeLite\UnitTest++-1.3/src -I.
And g++ complains about a missing header.
If I force add:
-Ic:/CodeLite/UnitTest++-1.3/src
Everything builds OK (well linker dies because of the same issue...)
How do I get the built in vars to handle slashes appropriately?