mirror of
https://github.com/azahar-emu/mcl
synced 2025-11-07 15:40:07 +01:00
mcl: Build as PIC
This commit is contained in:
parent
4aad0b5e69
commit
761b7c05e8
@ -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)
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user