From 450873ed22d61befe24c263df7f38020f695684a Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 9 Aug 2019 12:45:02 +0200 Subject: [PATCH] Fixed MOZILLA_NMH_DIR setting again. option() does only accept a boolean value, apparently. If unset, files are installed to "${CMAKE_INSTALL_PREFIX}/OFF". --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23aa6c7..c3b0041 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,8 +22,8 @@ option(WITH_MAN "Compile and install manpage." YES) option(WITH_TESTS "Compile tests." NO) option(WITH_MOZILLA "Build and install wrapper for Mozilla browsers." YES) option(BUILD_SHARED_LIBS "Build shared libraries." YES) -option(MOZILLA_NMH_DIR "Directory for the Mozilla extension wrapper." - "${CMAKE_INSTALL_LIBDIR}/mozilla/native-messaging-hosts") +set(MOZILLA_NMH_DIR "${CMAKE_INSTALL_LIBDIR}/mozilla/native-messaging-hosts" + CACHE STRING "Directory for the Mozilla extension wrapper.") set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON)