[CMake] Properly test if compiler supports compiler flags
[WebKit-https.git] / CMakeLists.txt
index f560345..1dbd16e 100644 (file)
@@ -126,6 +126,8 @@ set(WebKit_LIBRARY_TYPE SHARED)
 set(WebKit2_LIBRARY_TYPE SHARED)
 set(WebCoreTestSupport_LIBRARY_TYPE STATIC)
 
+set(CMAKE_POSITION_INDEPENDENT_CODE True)
+
 # -----------------------------------------------------------------------------
 # Install JavaScript shell
 # -----------------------------------------------------------------------------