Skip to content

Commit 75d70e2

Browse files
committed
Fix linux install
1 parent e7d1eba commit 75d70e2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# make
3232
#
3333

34-
cmake_minimum_required(VERSION 3.19)
34+
cmake_minimum_required(VERSION 3.27)
3535

3636
## Project name to use as command prefix.
3737

mk/cmake/SuperTux/BuildInstall.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,15 @@ endif()
5858
if(UBUNTU_TOUCH)
5959
install(TARGETS supertux2
6060
DESTINATION ".")
61-
else()
61+
elseif(WIN32)
6262
install(TARGETS supertux2
6363
DESTINATION ${INSTALL_SUBDIR_BIN}
6464
RUNTIME_DEPENDENCIES PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-"
6565
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll"
6666
DIRECTORIES $<TARGET_RUNTIME_DLL_DIRS:supertux2>)
67+
else()
68+
install(TARGETS supertux2
69+
DESTINATION ${INSTALL_SUBDIR_BIN})
6770
endif()
6871

6972
if(EMSCRIPTEN)

0 commit comments

Comments
 (0)