diff --git a/ortools/base/CMakeLists.txt b/ortools/base/CMakeLists.txt index aa06420ac5..cd958899e2 100644 --- a/ortools/base/CMakeLists.txt +++ b/ortools/base/CMakeLists.txt @@ -12,6 +12,7 @@ # limitations under the License. file(GLOB _SRCS "*.h" "*.cc") +list(FILTER _SRCS EXCLUDE REGEX ".*/.*_test.cc") set(NAME ${PROJECT_NAME}_base) # Will be merge in libortools.so