@ -30,7 +30,6 @@ set(CMAKE_AUTORCC ON)
set ( CMAKE_CXX_STANDARD_REQUIRED ON )
option ( GPT4ALL_LOCALHOST OFF "Build installer for localhost repo" )
option ( GPT4ALL_AVX_ONLY OFF "Build for avx only" )
option ( GPT4ALL_OFFLINE_INSTALLER "Build an offline installer" OFF )
# G e n e r a t e a h e a d e r f i l e w i t h t h e v e r s i o n n u m b e r
@ -215,23 +214,11 @@ elseif(GPT4ALL_OFFLINE_INSTALLER)
cpack_ifw_add_repository ( "GPT4AllRepository" URL "file://${CMAKE_BINARY_DIR}/packages" )
else ( )
if ( ${ CMAKE_SYSTEM_NAME } MATCHES Linux )
if ( GPT4ALL_AVX_ONLY )
cpack_ifw_add_repository ( "GPT4AllRepository" URL "https://gpt4all.io/installer_repos/avx_only/linux/repository" )
else ( )
cpack_ifw_add_repository ( "GPT4AllRepository" URL "https://gpt4all.io/installer_repos/linux/repository" )
endif ( )
elseif ( ${ CMAKE_SYSTEM_NAME } MATCHES Windows )
# T o s i g n t h e t a r g e t o n w i n d o w s h a v e t o c r e a t e a b a t c h s c r i p t a d d u s e i t a s a c u s t o m t a r g e t a n d t h e n u s e C P A C K _ I F W _ E X T R A _ T A R G E T S t o s e t t h i s e x t r a t a r g e t
if ( GPT4ALL_AVX_ONLY )
cpack_ifw_add_repository ( "GPT4AllRepository" URL "https://gpt4all.io/installer_repos/avx_only/windows/repository" )
else ( )
cpack_ifw_add_repository ( "GPT4AllRepository" URL "https://gpt4all.io/installer_repos/windows/repository" )
endif ( )
elseif ( ${ CMAKE_SYSTEM_NAME } MATCHES Darwin )
if ( GPT4ALL_AVX_ONLY )
cpack_ifw_add_repository ( "GPT4AllRepository" URL "https://gpt4all.io/installer_repos/avx_only/mac/repository" )
else ( )
cpack_ifw_add_repository ( "GPT4AllRepository" URL "https://gpt4all.io/installer_repos/mac/repository" )
endif ( )
endif ( )
endif ( )