From 5a7e01f126cf03811a77f6e5f24c2bb0dd828d71 Mon Sep 17 00:00:00 2001 From: starg Date: Mon, 11 Jul 2016 18:56:42 +0900 Subject: [PATCH] =?utf8?q?MinGW=20=E3=81=AE=E3=83=AA=E3=83=AA=E3=83=BC?= =?utf8?q?=E3=82=B9=E3=83=93=E3=83=AB=E3=83=89=E3=81=A7=E3=81=AF=E3=82=B7?= =?utf8?q?=E3=83=B3=E3=83=9C=E3=83=AB=E3=82=92=E5=89=8A=E9=99=A4=E3=81=99?= =?utf8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c146e3d..898255d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,10 @@ if("${CMAKE_BUILD_TYPE}" MATCHES "Rel") set(Boost_USE_DEBUG_RUNTIME OFF) endif() +if("${CYGWIN}" OR "${MINGW}") + list(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") +endif() + find_package(Boost COMPONENTS unit_test_framework REQUIRED) include(cmake/common.cmake) -- 2.11.0