summaryrefslogtreecommitdiffstats
path: root/Source/cmake/WebKitHelpers.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake/WebKitHelpers.cmake')
-rw-r--r--Source/cmake/WebKitHelpers.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmake/WebKitHelpers.cmake b/Source/cmake/WebKitHelpers.cmake
index 0bf335527..6e46383f3 100644
--- a/Source/cmake/WebKitHelpers.cmake
+++ b/Source/cmake/WebKitHelpers.cmake
@@ -10,9 +10,11 @@ macro(WEBKIT_SET_EXTRA_COMPILER_FLAGS _target)
set(OLD_COMPILE_FLAGS "")
endif ()
- get_target_property(TARGET_TYPE ${_target} TYPE)
- if (${TARGET_TYPE} STREQUAL "STATIC_LIBRARY") # -fPIC is automatically added to shared libraries
- set(OLD_COMPILE_FLAGS "-fPIC ${OLD_COMPILE_FLAGS}")
+ if (NOT WIN32)
+ get_target_property(TARGET_TYPE ${_target} TYPE)
+ if (${TARGET_TYPE} STREQUAL "STATIC_LIBRARY") # -fPIC is automatically added to shared libraries
+ set(OLD_COMPILE_FLAGS "-fPIC ${OLD_COMPILE_FLAGS}")
+ endif ()
endif ()
# Suppress -Wparentheses-equality warning of Clang