mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
WIP
Signed-off-by: Cayleb-Ordo <simon@fentzl.de>
This commit is contained in:
parent
2d54b6cf23
commit
e75dd47d57
3 changed files with 24 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ if _OPTIONS["android"] then
|
|||
elseif os.istarget("windows") then
|
||||
if os.getenv("HOSTTYPE") then
|
||||
arch = os.getenv("HOSTTYPE")
|
||||
elseif os.getenv("PROCESSOR_ARCHITECTURE") == "amd64" or os.getenv("PROCESSOR_ARCHITEW6432") == "amd64" then
|
||||
elseif os.getenv("PROCESSOR_ARCHITECTURE") == "AMD64" or os.getenv("PROCESSOR_ARCHITEW6432") == "AMD64" then
|
||||
arch = "amd64"
|
||||
end
|
||||
else
|
||||
|
|
|
|||
|
|
@ -48,3 +48,9 @@ function(add_pch)
|
|||
CONFIG_ENABLE_PCH=1
|
||||
)
|
||||
endfunction(add_pch)
|
||||
|
||||
function(test_generator_expression EXPRESSION)
|
||||
add_custom_target(genexdebug
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "${EXPRESSION}"
|
||||
)
|
||||
endfunction(test_generator_expression)
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ function(precompile_header _target _header _source)
|
|||
get_target_property(target_bindir ${_target} BINARY_DIR)
|
||||
set(gcc_out ${target_bindir}/${_header}.gch)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
||||
message(STATUS "Precompiled: ${_target} ${_header} ${_source}")
|
||||
# message(STATUS "Precompiled: ${_target} ${_header} ${_source}")
|
||||
# target_compile_options(${_target}
|
||||
# PRIVATE
|
||||
|
|
@ -22,6 +23,22 @@ function(precompile_header _target _header _source)
|
|||
# /FI${_header}
|
||||
# )
|
||||
# endif()
|
||||
# get_source_file_property(tmp ${_source}/precompiled.cpp COMPILE_FLAGS)
|
||||
# message(STATUS "Property: ${tmp}")
|
||||
# include(CMakePrintHelpers)
|
||||
# cmake_print_properties(TARGETS ${_target}
|
||||
# PROPERTIES
|
||||
# # INCLUDE_DIRECTORIES
|
||||
# # LINK_LIBRARIES
|
||||
# COMPILE_OPTIONS
|
||||
# # COMPILE_DEFINITIONS
|
||||
# # WIN32_EXECUTABLE
|
||||
# # MACOSX_BUNDLE
|
||||
# # IMPORTED_LOCATION
|
||||
# # INTERFACE_INCLUDE_DIRECTORIES
|
||||
# # CXX_EXTENSIONS
|
||||
# # CXX_STANDARD_REQUIRED
|
||||
# )
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU|AppleClang")
|
||||
message(STATUS "C++")
|
||||
add_custom_command(
|
||||
|
|
|
|||
Loading…
Reference in a new issue