Skip to content

Commit

Permalink
Add cmake install path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Hohsdze authored and Mykola Hohsdze committed Feb 7, 2023
1 parent 484a951 commit c8e5e09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ endif()
#

include(GNUInstallDirs)
if(CMAKE_SYSTEM_NAME MATCHES "Haiku")
set(CMAKE_INSTALL_LIBDIR ~/config/non-packaged/lib)
set(CMAKE_INSTALL_BINDIR ~/config/non-packaged/bin)
set(CMAKE_INSTALL_INCLUDEDIR ~/config/non-packaged/include)
endif()
install(TARGETS cpu_features list_cpu_features
EXPORT CpuFeaturesTargets
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cpu_features
Expand Down

0 comments on commit c8e5e09

Please sign in to comment.