[Omake] can't get vmount to work
Jesper Eskilson
jesper at eskilson.se
Fri May 25 02:15:11 PDT 2007
Hi all,
I can't get my "variant build" to work. The directory structure looks
like this:
/OMakeroot
/OMakefile
/WinUtil/OMakefile
/src/OMakefile # empty
/src1.cpp
/src2.cpp
/Legacy/OMakefile # empty
/src3.cpp
/src4.cpp
The top-level OMakefile looks like this:
> .PHONY: all install clean
>
> CXXFLAGS += /EHsc /MDd /DTRACING_ON /Od
> vmount(WinUtil, .omake-build/Debug/WinUtil)
> .SUBDIRS: .omake-build/Debug/WinUtil
and WinUtil/OMakefile looks like this:
> LIBFILES[] =
> src/src1.cpp
> src/src2.cpp
> Legacy/src3.cpp
> Legacy/src4.cpp
>
> LIB = WinUtil
>
> .SUBDIRS: src Legacy
>
> .DEFAULT: $(StaticCXXLibrary $(LIB), $(LIBFILES))
When I run omake from the top-level, I get:
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.2 sec)
> - build .omake-build\Debug\WinUtil WinUtil.lib
> + lib /nologo /debugtype:CV /out:WinUtil.lib @WinUtil.lib.tmp
> Microsoft (R) Library Manager Version 8.00.50727.762
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> LIB : fatal error LNK1104: cannot open file 'WinUtil.lib.tmp'
> *** omake: 32/35 targets are up to date
> *** omake: failed (0.7 sec, 0/0 scans, 1/1 rules, 27/152 digests)
> *** omake: targets were not rebuilt because of errors:
> .omake-build\Debug\WinUtil\WinUtil.lib
> depends on: WinuUtil\src\src1.cpp
> [...]
What am I doing wrong?
--
/Jesper
More information about the Omake
mailing list