[ox] Make code only compile as PIC if a bare metal build

This commit is contained in:
2019-06-15 02:34:39 -05:00
parent 238bc58f66
commit 30ff7be0e4
6 changed files with 33 additions and 27 deletions

View File

@@ -11,12 +11,14 @@ add_library(
trace.cpp
)
set_property(
TARGET
OxStd
PROPERTY
POSITION_INDEPENDENT_CODE ON
)
if(NOT OX_BARE_METAL)
set_property(
TARGET
OxStd
PROPERTY
POSITION_INDEPENDENT_CODE ON
)
endif()
target_link_libraries(
OxStd PUBLIC