allow to compile tests without installing

This commit is contained in:
Jan Christoph Uhde 2019-06-27 12:43:27 +02:00
parent 5dfced26c2
commit 034bae09e4
2 changed files with 17 additions and 3 deletions

View file

@ -12,8 +12,10 @@ if (NOT CMAKE_BUILD_TYPE)
endif()
endif()
if(NOT TARGET mimalloc)
# Import mimalloc (if installed)
find_package(mimalloc 1.0 REQUIRED)
endif()
# Tests
add_executable(static-override main-override.c)