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:
Markus Goetz 2014-06-05 14:22:10 +02:00
parent 3934fa019e
commit 34b31c0146

View file

@ -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)