> The CMakeLists.txt file in vcl seems to always compile
> the emulation directory. Things like vcl_alloc.cxx are always compiled.
> I thought this stuff was not used by all compilers? Should the
> build of emulation files be conditional on if they are actually going
> to be used?
Yes, you're probably right.
I seem to remember though (but didn't find back the exact discussion about
it in my mail achives) that there was some reason to do so.
Note that, when VCL_USE_NATIVE_STL is set, all files vcl/emulation/*.cxx
are effectively empty, so no code is generated. There is a comment
# It is OK to compile these sources with native
# STLs because they won't generate any code
in the makefile on this; moreover, the emulation files are within an
in the makefile, which seems to have diappeared when switching to CMake.
So we could indeed try to reset this conditional compile.
Just one more remark:
It would not work to just throw away the whole vcl/emulation directory
since the following two files are needed under some conditions, even if
VCL_USE_NATIVE_STL and VCL_USE_NATIVE_COMPLEX are set: