fix variable substitution

This commit is contained in:
Tim Felgentreff 2020-12-03 12:35:26 +01:00
parent 4a790f98e8
commit 199ab306ac

View file

@ -45,6 +45,11 @@ cmake_minimum_required(VERSION 2.6)
# useful for clangd LSP server
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(EXISTS ${WIN32_CMAKE_PREFIX_PATH})
list(APPEND CMAKE_PREFIX_PATH "${WIN32_CMAKE_PREFIX_PATH}")
message("Using prefix path ${CMAKE_PREFIX_PATH}")
endif()
# C++ standard
set(CMAKE_CXX_STANDARD 17)
@ -679,11 +684,6 @@ if(WIN32)
option(ENABLE_NSIS "Create Stratagus Window NSIS Installer" OFF)
endif()
if(EXISTS WIN32_CMAKE_PREFIX_PATH)
list(APPEND CMAKE_PREFIX_PATH "${WIN32_CMAKE_PREFIX_PATH}")
message("Using prefix path ${CMAKE_PREFIX_PATH}")
endif()
option(ENABLE_TOUCHSCREEN "Use touchscreen input" OFF)
option(WITH_BZIP2 "Compile Stratagus with BZip2 compression support" ON)