Fixed CI
This commit is contained in:
@@ -24,19 +24,17 @@ add_executable(backend
|
||||
src/controllers/admin.cpp
|
||||
src/controllers/fs.cpp
|
||||
src/controllers/user.cpp
|
||||
|
||||
src/controllers/auth/auth_common.cpp
|
||||
src/controllers/auth/auth_basic.cpp
|
||||
src/controllers/auth/auth_2fa.cpp
|
||||
src/controllers/auth/auth_gitlab.cpp
|
||||
|
||||
src/filters/filters.h
|
||||
src/filters/filters.cpp
|
||||
src/controllers/auth/auth_gitlab.cpp)
|
||||
)
|
||||
|
||||
|
||||
if (MINGW)
|
||||
target_link_libraries(backend -static-libgcc -static-libstdc++)
|
||||
endif (MINGW)
|
||||
|
||||
|
||||
find_package(Drogon CONFIG REQUIRED)
|
||||
find_package(CURL CONFIG REQUIRED)
|
||||
@@ -64,6 +62,8 @@ target_link_libraries(backend
|
||||
${QR_LIBRARY}
|
||||
)
|
||||
|
||||
install(TARGETS backend)
|
||||
|
||||
target_compile_options(backend PRIVATE
|
||||
$<$<CONFIG:Debug>:-g -Wall -Wno-unknown-pragmas>
|
||||
$<$<CONFIG:Release>:-O3>
|
||||
|
||||
Reference in New Issue
Block a user