diff --git a/CMakeLists.txt b/CMakeLists.txt index c9d526e..3bf3163 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12 FATAL_ERROR) include(GNUInstallDirs) -project(mcl LANGUAGES CXX VERSION 0.1.6) +project(mcl LANGUAGES CXX VERSION 0.1.7) # Project options option(MCL_WARNINGS_AS_ERRORS "Warnings as errors" ON) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a25392b..92d2d8e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,6 +63,7 @@ target_include_directories(mcl ) target_compile_options(mcl PRIVATE ${MCL_CXX_FLAGS}) target_link_libraries(mcl PUBLIC $) +set_property(TARGET mcl PROPERTY POSITION_INDEPENDENT_CODE ON) add_library(merry::mcl ALIAS mcl) include(CreateTargetDirectoryGroups)