SDL frontend: compiling asm hq filters
First of all, it seems that cmake 2.6.0 is required to do it,
cause for some reason I was unable to use them, till I upgraded.
Now, a question: why does compiling of c version take a few orders of magnitude more time than the asm version ?
And a minor annoyance:
unless I add '-w-orphan-labels' in CMakeLists.txt, I'm flooded with warnings while I compile those filters.
This is a reply, cause otherwise I'd have to rewrite most of first post.
It looks like it's not only version problem, I have to delete CMakeFiles/CMakeASMCompiler.cmake first time it's generated and rerun cmake to get it to work.
Also, it looks like a certain block in CMakeLists.txt should actually loke like this:
Code: Select all
IF( NOT USE_ASM_CORE )
ADD_DEFINITIONS (-DC_CORE)
ELSE ( NOT USE_ASM_CORE )
ADD_DEFINITIONS (-UC_CORE)
ENDIF( NOT USE_ASM_CORE )
to work correctly.
Â
Well, there are actually at least two problems:
the one above is caused by following line:
Code: Select all
ADD_DEFINITIONS (-DHAVE_NETINET_IN_H -DHAVE_ARPA_INET_H -DHAVE_ZLIB_H -DFINAL_VERSION -DBKPT_SUPPORT -DSDL -DUSE_OPENGL -DC_CORE -DSYSCONFDIR='"${SYSCONFDIR}"')
-DC_CORE should be removed
the other is that that quoting of defines in incorrect, cmake_policy( SET CMP0005 NEW ) doesn't work together with current quoting style of CMakeLists.txt.