2018-02-10 02:07:35 +01:00
|
|
|
set(_WIN_NEEDED_VARS
|
2018-06-07 02:19:53 +02:00
|
|
|
CMAKE_GENERATOR_BASE
|
2018-02-10 02:07:35 +01:00
|
|
|
PLATFORM
|
2018-06-07 02:19:53 +02:00
|
|
|
CONFIGURATION
|
2018-02-10 02:07:35 +01:00
|
|
|
)
|
|
|
|
foreach(_WIN_NEEDED_VAR ${_WIN_NEEDED_VARS})
|
|
|
|
set("${_WIN_NEEDED_VAR}" "$ENV{${_WIN_NEEDED_VAR}}")
|
|
|
|
message(STATUS "configure_windows: script argument: ${_WIN_NEEDED_VAR} = '${${_WIN_NEEDED_VAR}}'")
|
|
|
|
if("${${_WIN_NEEDED_VAR}}" STREQUAL "")
|
|
|
|
message(FATAL_ERROR "${_WIN_NEEDED_VAR} is empty")
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
string(TOLOWER "${ARCH}" ARCH)
|
2018-02-10 02:07:35 +01:00
|
|
|
if(PLATFORM STREQUAL "win32")
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE}")
|
|
|
|
set(CONAN_ARCH "x86")
|
2018-02-10 02:07:35 +01:00
|
|
|
elseif(PLATFORM STREQUAL "x64")
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE} Win64")
|
|
|
|
set(CONAN_ARCH "x86_64")
|
2018-02-10 02:07:35 +01:00
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "Unknown platform (${PLATFORM})")
|
|
|
|
endif()
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CONFIGURE_EXTRA_OPTIONS ";")
|
2018-08-29 15:52:59 +02:00
|
|
|
set(BUILD_EXTRA_FLAGS "")
|
2018-06-07 02:19:53 +02:00
|
|
|
|
2018-09-01 18:23:10 +02:00
|
|
|
set(BUILD_TYPE "${CONFIGURATION}")
|
2018-02-10 02:07:35 +01:00
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CONAN_ARCH "x86_64")
|
2018-02-10 02:07:35 +01:00
|
|
|
|
2018-08-09 23:08:07 +02:00
|
|
|
set(BUILD_TOOLS TRUE)
|
2018-06-07 02:19:53 +02:00
|
|
|
set(BUILD_VIEWER TRUE)
|
2018-06-14 16:08:49 +02:00
|
|
|
set(CHECK_IWYU FALSE) #FIXME: ENABLE
|
2018-06-08 10:18:05 +02:00
|
|
|
set(ENABLE_SANITIZERS "")
|