Skip to content

Commit 7c9e010

Browse files
committed
cmake: fix c++ build
1 parent ec08fca commit 7c9e010

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ortools/glop/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
file(GLOB _SRCS "*.h" "*.cc")
1515
list(FILTER _SRCS EXCLUDE REGEX ".*/.*_test.cc")
16+
list(FILTER _SRCS EXCLUDE REGEX ".*/preprocessor_testing.cc")
17+
list(FILTER _SRCS EXCLUDE REGEX ".*/preprocessor_testing.h")
1618
set(NAME ${PROJECT_NAME}_glop)
1719

1820
# Will be merge in libortools.so

ortools/lp_data/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# limitations under the License.
1313

1414
file(GLOB _SRCS "*.h" "*.cc")
15+
list(FILTER _SRCS EXCLUDE REGEX ".*/.*_test.cc")
16+
list(FILTER _SRCS EXCLUDE REGEX ".*/.*_testing.cc")
17+
list(FILTER _SRCS EXCLUDE REGEX ".*/.*_testing.h")
1518
set(NAME ${PROJECT_NAME}_lp_data)
1619

1720
# Will be merge in libortools.so

0 commit comments

Comments
 (0)