Skip to content

Commit

Permalink
Fix for cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Nov 27, 2023
1 parent c857195 commit d112ceb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ include(CTest)
include(cmake/deps.cmake)
include(cmake/config.cmake)
add_subdirectory(src)
include(cmake/data.cmake)
if(NOT CMAKE_CROSSCOMPILING)
include(cmake/data.cmake)
endif()
include(cmake/docs.cmake)

include(cmake/package.cmake)
include(CPack)

include(CTest)
add_subdirectory(tests)
if(NOT CMAKE_CROSSCOMPILING)
include(CTest)
add_subdirectory(tests)
endif()

option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

Expand All @@ -33,4 +37,4 @@ message(STATUS " async: ${USE_ASYNC}")

install(
DIRECTORY vim/ftdetect vim/syntax DESTINATION share/vim/vimfiles
)
)

0 comments on commit d112ceb

Please sign in to comment.