Skip to content

Commit

Permalink
Do not add debug information to release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Vort committed Feb 26, 2023
1 parent c31ea33 commit 1bd73e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/CMakeLists.txt
Expand Up @@ -305,6 +305,10 @@ if(WITH_BINARY)
add_executable("${PROJECT_NAME}" ${DAEMON_SRC})
endif()

if(WIN32)
set_target_properties("${PROJECT_NAME}" PROPERTIES LINK_FLAGS_RELEASE "-s")
endif()

if(WITH_STATIC)
set_target_properties("${PROJECT_NAME}" PROPERTIES LINK_FLAGS "-static")
endif()
Expand Down

0 comments on commit 1bd73e7

Please sign in to comment.