From a6aa90573174aa324db1168944c12ba551f8e3c8 Mon Sep 17 00:00:00 2001 From: daan Date: Sun, 14 Jul 2019 14:47:59 -0700 Subject: [PATCH] make sure older cmake versions work for build --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6f7abb6..a844a5b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,10 +162,12 @@ target_include_directories(mimalloc-obj PUBLIC $ ) -# seems to lead to cmake warnings/errors on some systems, disable for now :-( +# the following seems to lead to cmake warnings/errors on some systems, disable for now :-( # install(TARGETS mimalloc-obj EXPORT mimalloc DESTINATION ${mi_install_dir}) -install(FILES $ +# the FILES expression can also be: $ +# but that fails cmake versions less than 3.10 so we leave it as is for now +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/mimalloc-obj.dir/src/static.c${CMAKE_C_OUTPUT_EXTENSION} DESTINATION ${mi_install_dir} RENAME ${mi_basename}${CMAKE_C_OUTPUT_EXTENSION} )