enable PIC for catch library objects

This commit is contained in:
Walter Julius Hennecke 2019-09-21 14:36:37 +02:00
parent 09a50369c9
commit 8cbd692961
1 changed files with 4 additions and 1 deletions

View File

@ -3,4 +3,7 @@ cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17)
add_library(catch2_main OBJECT runner.cpp)
add_library(catch2_symbols OBJECT UnitTest.cpp)
set_property(TARGET catch2_main PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(catch2_symbols OBJECT UnitTest.cpp)
set_property(TARGET catch2_symbols PROPERTY POSITION_INDEPENDENT_CODE ON)