diff --git a/hphp/CMakeLists.txt b/hphp/CMakeLists.txt index ad6558b1c36195..dc66d542d471b4 100644 --- a/hphp/CMakeLists.txt +++ b/hphp/CMakeLists.txt @@ -135,7 +135,6 @@ endif() add_subdirectory(tools/hfsort) add_subdirectory(tools/version) -add_subdirectory(tools/tc-print) add_subdirectory(compiler) add_subdirectory(hack) @@ -145,6 +144,10 @@ add_subdirectory(neo) add_subdirectory(runtime) add_subdirectory(runtime/ext) +# Note: tc-print depends on EXTENSION_SYSTEMLIB_SOURCES being already set +# and therefore should be added after extensions. +add_subdirectory(tools/tc-print) + # The runtime/test binary require GTest and GMock to be installed globally option(RUNTIME_TEST_BIN "Create the HHVM runtime/test binary" OFF) if (RUNTIME_TEST_BIN)