From e5cd9bdddec08af22851fc2f0d960ae8d902b0b5 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Mon, 25 Mar 2024 12:05:50 +0800 Subject: [PATCH] fix: cannot find build target --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0758ac..0e49b54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,10 +36,7 @@ if(WIN32) ) set_target_properties(ncmdump_exec PROPERTIES OUTPUT_NAME "ncmdump") - set_target_properties(ncmdump_lib PROPERTIES OUTPUT_NAME "ncmdump") - - # Prefix shared libraries with 'lib'. - set(CMAKE_SHARED_LIBRARY_PREFIX "lib") + set_target_properties(ncmdump_lib PROPERTIES OUTPUT_NAME "libncmdump") target_include_directories(ncmdump_lib PRIVATE src/include)