|
@@ -310,7 +310,7 @@ endif()
|
|
|
|
|
|
if(MINGW OR MSVC)
|
|
if(MINGW OR MSVC)
|
|
# Windows Vista or newer for FuzzyLite 6 to compile
|
|
# Windows Vista or newer for FuzzyLite 6 to compile
|
|
- # Except for conan which already has this definition in its preset
|
|
|
|
|
|
+ # Except for conan which already has this definition in its profile
|
|
if(NOT USING_CONAN)
|
|
if(NOT USING_CONAN)
|
|
add_definitions(-D_WIN32_WINNT=0x0600)
|
|
add_definitions(-D_WIN32_WINNT=0x0600)
|
|
endif()
|
|
endif()
|
|
@@ -373,14 +373,9 @@ if(MINGW OR MSVC)
|
|
# Reported to Microsoft here:
|
|
# Reported to Microsoft here:
|
|
# https://developercommunity.visualstudio.com/content/problem/224597/linker-failing-because-of-multiple-definitions-of.html
|
|
# https://developercommunity.visualstudio.com/content/problem/224597/linker-failing-because-of-multiple-definitions-of.html
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:MULTIPLE")
|
|
-
|
|
|
|
- # Required at least for compatibility with Boost 1.68 on Vcpkg
|
|
|
|
- # psapi required for ARM64 builds
|
|
|
|
- set(SYSTEM_LIBS ${SYSTEM_LIBS} bcrypt psapi)
|
|
|
|
endif(MSVC)
|
|
endif(MSVC)
|
|
|
|
|
|
if(MINGW)
|
|
if(MINGW)
|
|
-
|
|
|
|
# Temporary (?) workaround for failing builds on MinGW CI due to bug in TBB
|
|
# Temporary (?) workaround for failing builds on MinGW CI due to bug in TBB
|
|
set(CMAKE_CXX_EXTENSIONS ON)
|
|
set(CMAKE_CXX_EXTENSIONS ON)
|
|
|
|
|
|
@@ -779,59 +774,6 @@ if(NOT WIN32 AND NOT APPLE_IOS AND NOT ANDROID)
|
|
WORLD_READ WORLD_EXECUTE)
|
|
WORLD_READ WORLD_EXECUTE)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
-
|
|
|
|
-if(WIN32)
|
|
|
|
- if(TBB_FOUND AND MSVC)
|
|
|
|
- install_vcpkg_imported_tgt(TBB::tbb)
|
|
|
|
- endif()
|
|
|
|
-
|
|
|
|
- if(USING_CONAN)
|
|
|
|
- #Conan imports enabled
|
|
|
|
- vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}")
|
|
|
|
- file(GLOB dep_files
|
|
|
|
- ${dep_files}
|
|
|
|
- "${CMAKE_SYSROOT}/bin/*.dll"
|
|
|
|
- "${CMAKE_SYSROOT}/lib/*.dll"
|
|
|
|
- "${CONAN_SYSTEM_LIBRARY_LOCATION}/libgcc_s_dw2-1.dll" # for 32-bit only?
|
|
|
|
- "${CONAN_SYSTEM_LIBRARY_LOCATION}/libgcc_s_seh-1.dll" # for 64-bit only?
|
|
|
|
- "${CONAN_SYSTEM_LIBRARY_LOCATION}/libstdc++-6.dll")
|
|
|
|
- else()
|
|
|
|
- file(GLOB dep_files
|
|
|
|
- ${dep_files}
|
|
|
|
- "${CMAKE_FIND_ROOT_PATH}/bin/*.dll")
|
|
|
|
- endif()
|
|
|
|
-
|
|
|
|
- if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
|
- # Copy debug versions of libraries if build type is debug
|
|
|
|
- set(debug_postfix d)
|
|
|
|
- endif()
|
|
|
|
-
|
|
|
|
- if(ENABLE_LAUNCHER OR ENABLE_EDITOR)
|
|
|
|
- get_target_property(QtCore_location Qt${QT_VERSION_MAJOR}::Core LOCATION)
|
|
|
|
- get_filename_component(Qtbin_folder ${QtCore_location} PATH)
|
|
|
|
- file(GLOB dep_files
|
|
|
|
- ${dep_files}
|
|
|
|
- ${Qtbin_folder}/Qt5Core${debug_postfix}.dll
|
|
|
|
- ${Qtbin_folder}/Qt5Gui${debug_postfix}.dll
|
|
|
|
- ${Qtbin_folder}/Qt5Widgets${debug_postfix}.dll
|
|
|
|
- ${Qtbin_folder}/Qt5Network${debug_postfix}.dll
|
|
|
|
- ${Qtbin_folder}/icu*.dll)
|
|
|
|
- get_target_property(integration_type Qt${QT_VERSION_MAJOR}::QWindowsIntegrationPlugin TYPE)
|
|
|
|
- if(NOT(integration_type STREQUAL "INTERFACE_LIBRARY"))
|
|
|
|
- get_target_property(integration_loc Qt${QT_VERSION_MAJOR}::QWindowsIntegrationPlugin LOCATION)
|
|
|
|
- install(
|
|
|
|
- FILES ${integration_loc}
|
|
|
|
- DESTINATION ${BIN_DIR}/platforms
|
|
|
|
- )
|
|
|
|
- install(
|
|
|
|
- FILES "$<TARGET_FILE:Qt${QT_VERSION_MAJOR}::QWindowsVistaStylePlugin>"
|
|
|
|
- DESTINATION ${BIN_DIR}/styles)
|
|
|
|
- endif()
|
|
|
|
- endif()
|
|
|
|
-
|
|
|
|
- install(FILES ${dep_files} DESTINATION ${BIN_DIR})
|
|
|
|
-endif(WIN32)
|
|
|
|
-
|
|
|
|
#######################################
|
|
#######################################
|
|
# Packaging section #
|
|
# Packaging section #
|
|
#######################################
|
|
#######################################
|