option(OQS_DIST_BUILD "Build distributable library with optimized code for several CPU microarchitectures. Enables run-time CPU feature detection." OFF)
option(OQS_BUILD_ONLY_LIB "Build only liboqs and do not expose build targets for tests, documentation, and pretty-printing available." OFF)
...
...
@@ -111,6 +111,11 @@ endif()
include(.CMake/compiler_opts.cmake)
include(.CMake/alg_support.cmake)
# Enable ASM language only when needed
if(OQS_DIST_ARM64_V8_BUILD OR OQS_USE_ARM_NEON_INSTRUCTIONS OR OQS_DIST_X86_64_BUILD OR(OQS_USE_AVX2_INSTRUCTIONS AND OQS_USEPOPCNT_INSTRUCTIONS) OR BUILD_AVX2)