mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
CSync: Fix test compile
The previously applied pull request apparantly broke the compile because it re-ordered entries in the CMakeLists
This commit is contained in:
parent
3934fa019e
commit
34b31c0146
1 changed files with 8 additions and 8 deletions
|
@ -28,14 +28,6 @@ if (NOT WIN32)
|
|||
find_package(Iconv)
|
||||
endif (NOT WIN32)
|
||||
|
||||
if (UNIT_TESTING)
|
||||
find_package(CMocka)
|
||||
if (CMOCKA_FOUND)
|
||||
include(AddCMockaTest)
|
||||
add_subdirectory(tests)
|
||||
endif (CMOCKA_FOUND)
|
||||
endif (UNIT_TESTING)
|
||||
|
||||
include(ConfigureChecks.cmake)
|
||||
|
||||
|
||||
|
@ -51,6 +43,14 @@ endif (MEM_NULL_TESTS)
|
|||
|
||||
add_subdirectory(src)
|
||||
|
||||
if (UNIT_TESTING)
|
||||
find_package(CMocka)
|
||||
if (CMOCKA_FOUND)
|
||||
include(AddCMockaTest)
|
||||
add_subdirectory(tests)
|
||||
endif (CMOCKA_FOUND)
|
||||
endif (UNIT_TESTING)
|
||||
|
||||
configure_file(config_csync.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_csync.h)
|
||||
configure_file(config_test.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_test.h)
|
||||
|
||||
|
|
Loading…
Reference in a new issue