From 3cffd17b2b8d712c435bc19263d848ac190b23a8 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 26 Nov 2019 17:28:09 +0100 Subject: cmake: enable exporting symbols from static libs again Reverts the effect of disabling CMP0065 in ac32426 (#11131) "build: get rid of warnings with `cmake --debug-output`" We need symbols from statically linked libraries to be exported. Otherwise cpath lua modules will not find liblua/libluajit symbols as needed. --- src/nvim/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 988021ca7a..bc8e64dd41 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -465,6 +465,7 @@ install_helper(TARGETS nvim) set_property(TARGET nvim APPEND PROPERTY INCLUDE_DIRECTORIES ${LUA_PREFERRED_INCLUDE_DIRS}) +set_property(TARGET nvim PROPERTY ENABLE_EXPORTS TRUE) if(ENABLE_LTO AND (POLICY CMP0069)) include(CheckIPOSupported) -- cgit