[ox] Make code only compile as PIC if a bare metal build
This commit is contained in:
14
deps/ox/src/ox/std/CMakeLists.txt
vendored
14
deps/ox/src/ox/std/CMakeLists.txt
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user