Commit 9136517c authored by Laurent Montel's avatar Laurent Montel 😁

Don't use -fpic on windows

parent 1835c438
...@@ -7,8 +7,9 @@ include_directories( ...@@ -7,8 +7,9 @@ include_directories(
add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_migration_agent\") add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_migration_agent\")
kde_enable_exceptions() kde_enable_exceptions()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()
set(migrationagent_SRCS set(migrationagent_SRCS
migrationagent.cpp migrationagent.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment