From 514e53b934bb3e0cbba561c0d902ce67ba634c77 Mon Sep 17 00:00:00 2001 From: simon987 Date: Thu, 26 Dec 2019 16:50:08 -0500 Subject: [PATCH] Fix cmake --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed67c05..469690c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,19 +2,19 @@ cmake_minimum_required(VERSION 3.15) project(fastimagehash) -set(BUILD_UT OFF) +set(BUILD_UT OFF CACHE INTERNAL "") add_subdirectory(thirdparty/wavelib) -set(BENCHMARK_ENABLE_GTEST_TESTS OFF) -set(BENCHMARK_ENABLE_TESTING OFF) -set(BENCHMARK_ENABLE_INSTALL OFF) -set(CMAKE_BUILD_TYPE RELEASE) +set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE INTERNAL "") +set(BENCHMARK_ENABLE_TESTING OFF CACHE INTERNAL "") +set(BENCHMARK_ENABLE_INSTALL OFF CACHE INTERNAL "") +set(CMAKE_BUILD_TYPE RELEASE CACHE INTERNAL "") add_subdirectory(thirdparty/benchmark) set(CMAKE_CXX_STANDARD 14) set(CMAKE_C_STANDARD 11) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "cmake/") +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "cmake/" CACHE INTERNAL "") find_package(OpenCV REQUIRED) find_package(FFTW REQUIRED)