From 3d4799a0c0ae6dc5a46a95bbccc65a369390dc46 Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Fri, 21 May 2021 14:55:28 +0200 Subject: [PATCH] Use the same output name as the other platforms --- CMakeLists.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 335f739f0a..e0049aa318 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -486,20 +486,8 @@ if(LIEF_COVERAGE) target_link_libraries(LIB_LIEF gcov) endif() +set_target_properties(LIB_LIEF PROPERTIES OUTPUT_NAME LIEF CLEAN_DIRECT_OUTPUT 1) -if(MSVC) - string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type) - if(build_type STREQUAL "debug") - set(CRT_OUTPUT_SUFFIX ${LIEF_USE_CRT_DEBUG}) - else() - set(CRT_OUTPUT_SUFFIX ${LIEF_USE_CRT_RELEASE}) - endif() - set_target_properties(LIB_LIEF PROPERTIES OUTPUT_NAME LIEF${CRT_OUTPUT_SUFFIX} - CLEAN_DIRECT_OUTPUT 1) -else() - set_target_properties(LIB_LIEF PROPERTIES OUTPUT_NAME LIEF CLEAN_DIRECT_OUTPUT - 1) -endif() # Set a default build type if none was specified if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)