|
|
@ -166,11 +166,15 @@ macro (openmw_add_executable target)
|
|
|
|
endmacro (openmw_add_executable)
|
|
|
|
endmacro (openmw_add_executable)
|
|
|
|
|
|
|
|
|
|
|
|
macro (get_generator_is_multi_config VALUE)
|
|
|
|
macro (get_generator_is_multi_config VALUE)
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER 3.9 OR CMAKE_VERSION VERSION_EQUAL 3.9)
|
|
|
|
if (DEFINED generator_is_multi_config_var)
|
|
|
|
get_cmake_property(${VALUE} GENERATOR_IS_MULTI_CONFIG)
|
|
|
|
set(${VALUE} ${generator_is_multi_config_var})
|
|
|
|
else (CMAKE_VERSION VERSION_GREATER 3.9 OR CMAKE_VERSION VERSION_EQUAL 3.9)
|
|
|
|
else (DEFINED generator_is_multi_config_var)
|
|
|
|
list(LENGTH "${CMAKE_CONFIGURATION_TYPES}" ${VALUE})
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER 3.9 OR CMAKE_VERSION VERSION_EQUAL 3.9)
|
|
|
|
endif (CMAKE_VERSION VERSION_GREATER 3.9 OR CMAKE_VERSION VERSION_EQUAL 3.9)
|
|
|
|
get_cmake_property(${VALUE} GENERATOR_IS_MULTI_CONFIG)
|
|
|
|
|
|
|
|
else (CMAKE_VERSION VERSION_GREATER 3.9 OR CMAKE_VERSION VERSION_EQUAL 3.9)
|
|
|
|
|
|
|
|
list(LENGTH "${CMAKE_CONFIGURATION_TYPES}" ${VALUE})
|
|
|
|
|
|
|
|
endif (CMAKE_VERSION VERSION_GREATER 3.9 OR CMAKE_VERSION VERSION_EQUAL 3.9)
|
|
|
|
|
|
|
|
endif (DEFINED generator_is_multi_config_var)
|
|
|
|
endmacro (get_generator_is_multi_config)
|
|
|
|
endmacro (get_generator_is_multi_config)
|
|
|
|
|
|
|
|
|
|
|
|
macro (copy_resource_file source_path destination_dir_base dest_path_relative)
|
|
|
|
macro (copy_resource_file source_path destination_dir_base dest_path_relative)
|
|
|
|