Skip to content

Commit

Permalink
Add optimization specification again (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth authored Oct 5, 2024
1 parent cc770c5 commit b039cb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hdi/data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
1 change: 1 addition & 0 deletions hdi/dimensionality_reduction/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions hdi/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b039cb4

Please sign in to comment.