From 13cbf0bbca68863b47236a744f2bc75fb713ef30 Mon Sep 17 00:00:00 2001 From: Michael Pavlyshko Date: Fri, 11 Jul 2014 23:11:19 +0300 Subject: [PATCH] disable fPIC for windows --- AI/FuzzyLite/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AI/FuzzyLite/CMakeLists.txt b/AI/FuzzyLite/CMakeLists.txt index b0164a945..7eca472db 100644 --- a/AI/FuzzyLite/CMakeLists.txt +++ b/AI/FuzzyLite/CMakeLists.txt @@ -50,4 +50,6 @@ add_library(FuzzyLite_lib STATIC ${FuzzyLite_lib_SRCS}) # all symobls from FuzzyLite exposed to public. This triggers errors # when library is checked by analizers for issues # Correct solution is either make FuzzyLite symbols hidden or turn lib into dynamic -SET_TARGET_PROPERTIES(FuzzyLite_lib PROPERTIES COMPILE_FLAGS "-fPIC") +if(NOT WIN32) + SET_TARGET_PROPERTIES(FuzzyLite_lib PROPERTIES COMPILE_FLAGS "-fPIC") +endif() \ No newline at end of file