aboutsummaryrefslogtreecommitdiff
path: root/cmake/RunTests.cmake
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-05-13 12:12:29 +0200
committerGitHub <noreply@github.com>2023-05-13 12:12:29 +0200
commit10860164778327c0009f6efc8e020308cadb13a2 (patch)
tree735513c4c2943080f5e554e8699f623fe6ecea06 /cmake/RunTests.cmake
parented8c44f76762061e30cb8056483f55d38802eaef (diff)
downloadrneovim-10860164778327c0009f6efc8e020308cadb13a2.tar.gz
rneovim-10860164778327c0009f6efc8e020308cadb13a2.tar.bz2
rneovim-10860164778327c0009f6efc8e020308cadb13a2.zip
build: cmake cleanup
- Simplify error checking when using execute_process. - Set BUILD_SHARED_LIBS to OFF when building dependencies. This is normally not needed, but msgpack interprets an unset BUILD_SHARED_LIBS to build a shared library, which is the opposite of the cmake behavior. - Move function check_lua_module to Util.cmake. - Remove unnecessary code. - Make variable naming more consistent
Diffstat (limited to 'cmake/RunTests.cmake')
-rw-r--r--cmake/RunTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake
index fe346661b5..1dcb6fb373 100644
--- a/cmake/RunTests.cmake
+++ b/cmake/RunTests.cmake
@@ -82,7 +82,7 @@ execute_process(
file(GLOB RM_FILES ${BUILD_DIR}/Xtest_*)
file(REMOVE_RECURSE ${RM_FILES})
-if(NOT res EQUAL 0)
+if(res)
message(STATUS "Tests exited non-zero: ${res}")
if("${err}" STREQUAL "")
message(STATUS "No output to stderr.")