From b039cb454348a7f2c0a3245107d874be34490c88 Mon Sep 17 00:00:00 2001 From: Alexander Vieth Date: Sat, 5 Oct 2024 13:27:04 +0200 Subject: [PATCH] Add optimization specification again (#49) --- hdi/data/CMakeLists.txt | 1 + hdi/dimensionality_reduction/CMakeLists.txt | 1 + hdi/utils/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/hdi/data/CMakeLists.txt b/hdi/data/CMakeLists.txt index 8a2f908..bab9df0 100644 --- a/hdi/data/CMakeLists.txt +++ b/hdi/data/CMakeLists.txt @@ -27,6 +27,7 @@ if(HDILib_ENABLE_CODE_ANALYSIS) endif() hdi_check_and_set_AVX(${PROJECT} ${HDILib_ENABLE_AVX}) +hdi_set_optimization_level(${PROJECT} ${HDILib_OPTIMIZATION_LEVEL}) ########### INSTALL ############## if(${HDILib_INSTALL}) diff --git a/hdi/dimensionality_reduction/CMakeLists.txt b/hdi/dimensionality_reduction/CMakeLists.txt index e936f07..e2bb769 100644 --- a/hdi/dimensionality_reduction/CMakeLists.txt +++ b/hdi/dimensionality_reduction/CMakeLists.txt @@ -66,6 +66,7 @@ if(HDILib_ENABLE_CODE_ANALYSIS) endif() hdi_check_and_set_AVX(${PROJECT} ${HDILib_ENABLE_AVX}) +hdi_set_optimization_level(${PROJECT} ${HDILib_OPTIMIZATION_LEVEL}) if(UNIX) set(THREADS_PREFER_PTHREAD_FLAG ON) diff --git a/hdi/utils/CMakeLists.txt b/hdi/utils/CMakeLists.txt index b3ebe9c..159872f 100644 --- a/hdi/utils/CMakeLists.txt +++ b/hdi/utils/CMakeLists.txt @@ -25,6 +25,7 @@ if(HDILib_ENABLE_CODE_ANALYSIS) endif() hdi_check_and_set_AVX(${PROJECT} ${HDILib_ENABLE_AVX}) +hdi_set_optimization_level(${PROJECT} ${HDILib_OPTIMIZATION_LEVEL}) if (UNIX) target_link_libraries (hdiutils PRIVATE ${CMAKE_DL_LIBS}) # glad.cpp requires -ldl