X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=3rdparty%2Fhunspell%2FCMakeLists.txt;h=c69093848f65285dbed4c6538b930985eb5d66e0;hb=b399cfc7a27a484c519cf76fe9fac8cc4435a66a;hp=9921d6d88a3fa4ac46fad34e61e6e302ea51166d;hpb=c9c86b49666e49a6cc0c850af7413bfea500c5fd;p=features.git diff --git a/3rdparty/hunspell/CMakeLists.txt b/3rdparty/hunspell/CMakeLists.txt index 9921d6d88a..c69093848f 100644 --- a/3rdparty/hunspell/CMakeLists.txt +++ b/3rdparty/hunspell/CMakeLists.txt @@ -3,10 +3,9 @@ cmake_minimum_required(VERSION 3.1) set(LYX_IPO_SUPPORTED FALSE) if (POLICY CMP0069) - if (NOT LYX_DEBUG) - cmake_policy(SET CMP0069 NEW) - include(CheckIPOSupported) - check_ipo_supported(RESULT LYX_IPO_SUPPORTED) + cmake_policy(SET CMP0069 NEW) + if (LYX_USE_IPO MATCHES "ON") + set(LYX_IPO_SUPPORTED YES) endif() endif() @@ -59,7 +58,7 @@ add_definitions(-DHUNSPELL_STATIC) add_library(hunspell STATIC ${HEADERS} ${SRCS} ${HUNCONFIG}) set(HUNSPELL_LIBRARY hunspell CACHE STRING "Hunspell library" FORCE) -set(HUNSPELL_INCLUDE_DIR ${SRCDIR} CACHE STRING "Hunspell include dir" FORCE) +set(HUNSPELL_INCLUDE_DIR "${SRCDIR}/hunspell" CACHE STRING "Hunspell include dir" FORCE) set(HUNSPELL_FOUND CACHE STRING "Hunspell found" FORCE) set_target_properties(hunspell PROPERTIES