aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 09:14:22 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 09:14:22 +0300
commit1f9db8a34a0ef722661ea08313a5962dd36f637a (patch)
tree0d2b83866e5f159d7370fe3e851bae66e7e59548
parentturn on /MP for multi-core compilation (diff)
downloadprivilege-check-1f9db8a34a0ef722661ea08313a5962dd36f637a.tar.gz
privilege-check-1f9db8a34a0ef722661ea08313a5962dd36f637a.zip
link the runtime statically on MinGW, not GCC
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a7ac5b9..b064826 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,7 @@ if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE
$<$<CONFIG:Release>:/MT>
$<$<CONFIG:Debug>:/MTd>)
-elseif(CMAKE_COMPILER_IS_GNUCXX)
+elseif(MINGW)
target_link_libraries(${PROJECT_NAME} PRIVATE
-static-libgcc
-static-libstdc++)