mcl: Build as PIC
This commit is contained in:
parent
57af72a567
commit
e3199f8f65
2 changed files with 2 additions and 1 deletions
2
externals/mcl/CMakeLists.txt
vendored
2
externals/mcl/CMakeLists.txt
vendored
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
project(mcl LANGUAGES CXX VERSION 0.1.5)
|
||||
project(mcl LANGUAGES CXX VERSION 0.1.6)
|
||||
|
||||
# Project options
|
||||
option(MCL_WARNINGS_AS_ERRORS "Warnings as errors" ON)
|
||||
|
|
1
externals/mcl/src/CMakeLists.txt
vendored
1
externals/mcl/src/CMakeLists.txt
vendored
|
@ -63,6 +63,7 @@ target_include_directories(mcl
|
|||
)
|
||||
target_compile_options(mcl PRIVATE ${MCL_CXX_FLAGS})
|
||||
target_link_libraries(mcl PUBLIC $<BUILD_INTERFACE:fmt::fmt>)
|
||||
set_property(TARGET mcl PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
add_library(merry::mcl ALIAS mcl)
|
||||
|
||||
include(CreateTargetDirectoryGroups)
|
||||
|
|
Loading…
Reference in a new issue