Skip to content

Commit 5f4c78a

Browse files
committedMar 26, 2021
Fix broken include check and correct Gitlab-CI script
1 parent fc1512c commit 5f4c78a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ variables:
2626
- cd ..
2727
- mkdir cmakebuild
2828
- cd cmakebuild
29-
- cmake -DIRRLICHT_LIBRARY=$PWD/../irrlicht/lib/Linux/libIrrlicht.a -DIRRLICHT_INCLUDE_DIR=$PWD/../irrlicht/include -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
29+
- cmake -DIRRLICHT_LIBRARY=$PWD/../irrlicht/lib/Linux/libIrrlichtMt.a -DIRRLICHT_INCLUDE_DIR=$PWD/../irrlicht/include -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
3030
- make -j2
3131
- make install
3232
artifacts:

‎CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
6161
find_package(Irrlicht)
6262
if(BUILD_CLIENT AND NOT IRRLICHT_FOUND)
6363
message(FATAL_ERROR "Irrlicht is required to build the client, but it was not found.")
64-
elseif(IRRLICHT_INCLUDE_DIR STREQUAL "")
64+
elseif(NOT IRRLICHT_INCLUDE_DIR)
6565
message(FATAL_ERROR "Irrlicht headers are required to build the server, but none found.")
6666
endif()
6767

0 commit comments

Comments
 (0)
Please sign in to comment.