Skip to content

Commit

Permalink
Use the same output name as the other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed May 21, 2021
1 parent 3568445 commit 3d4799a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d4799a

Please sign in to comment.