mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
clean up CMake code (#5182)
* CMake: simplify FindGMP.cmake Remove printing of all the different variables, and let FPHSA output the library name. Add an imported target, which bundles the library and the include directories for easier usage. * fix build: vector::c_ptr() now is vector::data() * CMake: use Threads::Threads imported module Otherwise the setting of THREADS_PREFER_PTHREAD_FLAG has no effect. * CMake: remove needless policy setting The minimum required version is CMake 3.4, where these policies are already set to new because they were introduced earlier. * CMake: remove needless variable expansion
This commit is contained in:
parent
ce96182746
commit
7f8e2a9f75
13 changed files with 69 additions and 94 deletions
|
@ -140,7 +140,7 @@ endforeach()
|
|||
# Note, nuget package file names do not have the ${VER_REV} part.
|
||||
|
||||
set(Z3_DOTNET_NUPKG_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}")
|
||||
if("${TARGET_ARCHITECTURE}" STREQUAL "i686")
|
||||
if(TARGET_ARCHITECTURE STREQUAL "i686")
|
||||
set(Z3_DOTNET_PLATFORM "x86")
|
||||
else()
|
||||
set(Z3_DOTNET_PLATFORM "AnyCPU")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue