4
0
mirror of https://github.com/QuasarApp/CMake.git synced 2025-05-09 07:59:38 +00:00

fix warnings message of crossplatform module

This commit is contained in:
Andrei Yankovich 2021-04-20 11:30:01 +03:00
parent 74385f2ae7
commit 9b83f17146
2 changed files with 10 additions and 8 deletions

@ -20,12 +20,8 @@ if(TARGET ${PROJECT_NAME})
endif()
cmake_minimum_required(VERSION 3.12)
include(crossplatform/crossplatform.cmake)
include(ProjectOut.cmake)
include(ccache.cmake)
include(QuasarApp.cmake)
include(Version.cmake)
include(QuasarAppCITargets.cmake)
include(QtUtils.cmake)
initAll()

@ -27,17 +27,23 @@ endif()
# * name - This is name of your initialize targets. You can set it as a CMAKE_PROJECT
# * deployFile - This is path to the deploy file of the cqtdepoyer tool. Use it for deploy your site.
if (NOT DEFINED TARGET_PLATFORM_TOOLCHAIN)
message( STATUS "The crossplatform build is disabled")
return()
endif
set(CROSSPLATFORM_BUILD_TOOLCHAIN_PATH ${CMAKE_CURRENT_LIST_DIR}/${CMAKE_HOST_SYSTEM_NAME}/${TARGET_PLATFORM_TOOLCHAIN}.cmake)
message("CROSSPLATFORM_BUILD_TOOLCHAIN_PATH = ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH}")
if(EXISTS ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH})
message("${TARGET_PLATFORM_TOOLCHAIN} exits in ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH}")
message( STATUS "${TARGET_PLATFORM_TOOLCHAIN} exits in ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH}")
include(${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH})
include( STATUS ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH})
else(EXISTS ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH})
message("${TARGET_PLATFORM_TOOLCHAIN} not exits in ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH}")
message(STATUS "${TARGET_PLATFORM_TOOLCHAIN} not exits in ${CROSSPLATFORM_BUILD_TOOLCHAIN_PATH}")
endif()
function(initWasmSupport name deployFile)