From 30d67cbe6c1ecda42cf757c2f0a5daab3a2b4df7 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 22 Jul 2021 22:50:46 +0200 Subject: reorder linkage --- src/mock/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mock/CMakeLists.txt') diff --git a/src/mock/CMakeLists.txt b/src/mock/CMakeLists.txt index 7f4f471..320e8a9 100644 --- a/src/mock/CMakeLists.txt +++ b/src/mock/CMakeLists.txt @@ -37,9 +37,9 @@ target_include_directories(mock PRIVATE ${WINE_TAR_DIR} ${CMAKE_CURRENT_BINARY_D set(NAME ${CMAKE_PROJECT_NAME}_mock) add_executable(${NAME} ${MAINSOURCES}) +target_link_libraries(${NAME} LINK_PUBLIC ${CMAKE_PROJECT_NAME}core) target_link_libraries(${NAME} LINK_PUBLIC ${JSONC_LIBRARIES}) target_link_libraries(${NAME} LINK_PUBLIC ${LIBARCHIVE_LIBRARIES}) -target_link_libraries(${NAME} LINK_PUBLIC ${CMAKE_PROJECT_NAME}core) target_link_libraries(${NAME} LINK_PUBLIC mock) target_compile_options(${NAME} PUBLIC ${CFLAGS}) -- cgit v1.2.3