From 0c3eb41f57d5ec64f02ce0909b7885c628abc67a Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 9 Sep 2024 13:54:35 -0700 Subject: [PATCH] CMake: Disable vixl compiling if not enabled Like how FEXCore disabled vixl linking, make sure we aren't accidentally compiling and including it when vixl stuff is disabled. Noticed this in the build logs. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bff21d450..ef122b0e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,8 +273,10 @@ if (BUILD_TESTS) set(COMPILE_VIXL_DISASSEMBLER TRUE) endif() -add_subdirectory(External/vixl/) -include_directories(SYSTEM External/vixl/src/) +if (COMPILE_VIXL_DISASSEMBLER OR ENABLE_VIXL_SIMULATOR) + add_subdirectory(External/vixl/) + include_directories(SYSTEM External/vixl/src/) +endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # This means we were attempted to get compiled with GCC