Fix CMake Subzero build.
Bug swiftshader:116
Change-Id: I93208ea733cfe69474477ad2e00e52c8e86d1e25
Reviewed-on: https://swiftshader-review.googlesource.com/c/21268
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e34e76..2c2684e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1682,6 +1682,11 @@
${SUBZERO_DIR}/src/IceVariableSplitting.cpp
)
+ # FIXME: Shouldn't depend on external source files directly.
+ list(APPEND SUBZERO_LIST
+ ${SOURCE_DIR}/Common/Memory.cpp
+ )
+
if(ARCH STREQUAL "x86_64")
list(APPEND SUBZERO_LIST
${SUBZERO_DIR}/src/IceTargetLoweringX86.cpp
@@ -1773,7 +1778,6 @@
${COMMON_INCLUDE_DIR}
)
-
###########################################################
# File Lists
###########################################################