[ox] Make code only compile as PIC if a bare metal build
This commit is contained in:
14
deps/ox/src/ox/mc/CMakeLists.txt
vendored
14
deps/ox/src/ox/mc/CMakeLists.txt
vendored
@@ -11,12 +11,14 @@ target_link_libraries(
|
||||
OxStd
|
||||
)
|
||||
|
||||
set_property(
|
||||
TARGET
|
||||
OxMetalClaw
|
||||
PROPERTY
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
if(NOT OX_BARE_METAL)
|
||||
set_property(
|
||||
TARGET
|
||||
OxMetalClaw
|
||||
PROPERTY
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
endif()
|
||||
|
||||
install(
|
||||
FILES
|
||||
|
Reference in New Issue
Block a user