Fix GBA build not to build libraries that use stdlib

This commit is contained in:
2017-04-13 04:31:30 -05:00
parent c6e33e5285
commit 9183815634
4 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -7,9 +7,11 @@ include(address_sanitizer)
set(OX_BUILD_EXEC "ON" CACHE STRING "Build executables (ON/OFF)")
set(OX_RUN_TESTS "ON" CACHE STRING "Run tests (ON/OFF)")
set(OX_USE_STDLIB "ON" CACHE STRING "Build libraries that need the std lib (ON/OFF)")
# can't run tests without building them
if(OX_BUILD_EXEC STREQUAL "OFF")
if(OX_BUILD_EXEC STREQUAL "OFF" OR OX_USE_STDLIB STREQUAL "OFF")
set(OX_BUILD_EXEC "OFF")
set(OX_RUN_TESTS "OFF")
endif()