Skip to content

why do we always fetch in findktx.cmake #311

@fiausch

Description

@fiausch

in attatchments/CMake/findktx.cmake

lines 17-25:

if(UNIX AND NOT APPLE)
  # On Linux, we assume KTX is not installed and proceed directly to fetching it
  set(KTX_FOUND FALSE)
else()
  # On non-Linux platforms, try to find KTX using pkg-config first
  find_package(PkgConfig QUIET)
  if(PKG_CONFIG_FOUND)
    pkg_check_modules(PC_KTX QUIET ktx libktx ktx2 libktx2)
  endif()

on line 18:

# On Linux, we assume KTX is not installed and proceed directly to fetching it
why would we do this?
I edited those lines out and I save a solid minute on compile time (at least when i choose to clear the build/ directory and then make)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions