Closed bekorn closed 1 year ago
@bekorn Yes, let's make both enable/disable KTX and KTX2 together.
Hi again. I think I've made the CMake -D arguments have an effect on the build (none were effective as I understand). You can check it here https://github.com/GPUOpen-Tools/compressonator/compare/master...bekorn:compressonator:improving_CMakeLists
However, I can't be sure if everything works, because I can't build the project because of all the dependencies that I don't have on my machine :/ Are there automated tests for this? Or can you test it? I can make a PR if that would be easier.
OPTION_BUILD_KTX2 has no effect because it is overwritten by this section that only depends on CMake version(?). https://github.com/GPUOpen-Tools/compressonator/blob/0bea29d5ab01c688c8408edf50a8f13dfe7a915b/CMakeLists.txt#L119-L123
Maybe it can be replaced with this?
Though even with this change, there are several other points where KTX2 is included without checking the OPTION_BUILD_KTX2. Is it okay if I create a patch that makes KTX2 actually optional? If yes, should I enable/disable KTX and KTX2 together?