CMake: Set PORTFOLIO_BUILD when building pcvc4 (#2666)
authorAndres Noetzli <andres.noetzli@gmail.com>
Mon, 22 Oct 2018 23:07:26 +0000 (16:07 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Oct 2018 23:07:26 +0000 (16:07 -0700)
commit93f4888b6bce4766ef3af0830b5c057a1cd11399
treef5e4ae149f19eb002e82ab27985195d9269c8432
parent5cdd2d16670725e29b1f43510fc5246e9c861fe3
CMake: Set PORTFOLIO_BUILD when building pcvc4 (#2666)

Back when we used Autotools, we set the PORTFOLIO_BUILD macro when
building pcvc4. Our CMake build system is currently not doing that, so
setting thread options when running pcvc4 results in an error message
saying that "thread options cannot be used with sequential CVC4."
This commit fixes that behavior by recompiling driver_unified.cpp with
different options for the cvc4 and the pcvc4 binary.

[0] https://github.com/CVC4/CVC4/blob/7de0540252b62080ee9f98617f5718cb1ae08579/src/main/Makefile.am#L36
src/main/CMakeLists.txt
src/main/driver_unified.cpp