mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix case where the build type is not defined
This commit is contained in:
parent
5b789cfb2d
commit
2a4b13e8cc
@ -40,7 +40,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set (CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
|
||||
endif ()
|
||||
|
||||
if (USE_APPIMAGE AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||
if (USE_APPIMAGE AND "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
|
||||
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
|
||||
endif ()
|
||||
@ -155,7 +155,7 @@ install (FILES resources/icon/planetblupi.png DESTINATION share/planetblupi)
|
||||
## Deploy
|
||||
#########
|
||||
|
||||
if (USE_APPIMAGE AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||
if (USE_APPIMAGE AND "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
include (LinuxAppImageBuild)
|
||||
set (CMAKE_PACKAGED_OUTPUT_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
APPIMAGE_PACKAGE (planetblupi "planetblupi" "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "share" "" "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user