From cd24c9638662b89a74f57c11b4587f8ee6dc575a Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sat, 28 May 2016 01:12:22 -0400 Subject: [PATCH] Eliminate -fPIC warnings on Windows. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1853a4..a0d7323 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,11 @@ find_package(ZLIB 1.2 REQUIRED) # Compilation #======================================= set(CMAKE_INCLUDE_CURRENT_DIR ON) -add_definitions (-std=c++11 -g -fPIC) + +add_definitions (-std=c++11 -g) +if (NOT WIN32) + add_definitions (-fPIC) +endif () #=======================================