Improve: enable CMAKE_POSITION_INDEPENDENT_CODE

This commit is contained in:
kr328 2021-05-25 19:14:57 +08:00
parent a75c8f5dfc
commit f967bd299a

View File

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.0)
project(clash-bridge C)
set(CMAKE_POSITION_INDEPENDENT_CODE on)
set(GO_OUTPUT_BASE ${GO_OUTPUT}/${FLAVOR_NAME})
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")