Skip to content

Commit

Permalink
cmake: don't strip binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed Sep 2, 2024
1 parent a2609ff commit 239755c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ else()
endif()

if (MSVC)
link_libraries(bcrypt dwmapi d3d11 d3dcompiler AdvAPI32 shell32 User32 kernel32)
link_libraries(bcrypt Gdi32 dwmapi d3d11 d3dcompiler AdvAPI32 shell32 User32 kernel32)
else()
link_libraries(bcrypt dwmapi d3d11 d3dcompiler advapi32 shell32 user32 kernel32)
link_libraries(bcrypt gdi32 dwmapi d3d11 d3dcompiler advapi32 shell32 user32 kernel32)
endif()

if (MSVC AND MSVC_CRT_LINKAGE STREQUAL "static")
Expand Down Expand Up @@ -281,13 +281,9 @@ if (NOT MSVC)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -static")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -static")

if (COMPILER_CLANG)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -s")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s")
endif()
if (COMPILER_GCC)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s -Os")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s -Os")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
endif()
endif()

Expand Down

0 comments on commit 239755c

Please sign in to comment.