mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
Downgraded CMake version requirement to 3.5 for better compatibility (#252)
This commit is contained in:
committed by
Petr Kobalicek
parent
5d9e960794
commit
3d510b3540
@@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||||||
|
|
||||||
cmake_policy(PUSH)
|
cmake_policy(PUSH)
|
||||||
cmake_policy(SET CMP0063 NEW) # Honor visibility properties.
|
cmake_policy(SET CMP0063 NEW) # Honor visibility properties.
|
||||||
@@ -94,10 +94,14 @@ function(asmjit_add_target target target_type src deps cflags cflags_dbg cflags_
|
|||||||
set_property(TARGET ${target} APPEND_STRING PROPERTY LINK_FLAGS " ${link_flag}")
|
set_property(TARGET ${target} APPEND_STRING PROPERTY LINK_FLAGS " ${link_flag}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
if (${CMAKE_VERSION} VERSION_LESS "3.8.0")
|
||||||
|
set_property(TARGET ${target} PROPERTY CXX_STANDARD 11)
|
||||||
|
else()
|
||||||
|
target_compile_features(${target} PUBLIC cxx_std_11)
|
||||||
|
endif()
|
||||||
set_property(TARGET ${target} PROPERTY CXX_EXTENSIONS NO)
|
set_property(TARGET ${target} PROPERTY CXX_EXTENSIONS NO)
|
||||||
set_property(TARGET ${target} PROPERTY CXX_VISIBILITY_PRESET hidden)
|
set_property(TARGET ${target} PROPERTY CXX_VISIBILITY_PRESET hidden)
|
||||||
target_compile_options(${target} PRIVATE ${cflags} ${ASMJIT_SANITIZE_FLAGS} $<$<CONFIG:Debug>:${cflags_dbg}> $<$<NOT:$<CONFIG:Debug>>:${cflags_rel}>)
|
target_compile_options(${target} PRIVATE ${cflags} ${ASMJIT_SANITIZE_FLAGS} $<$<CONFIG:Debug>:${cflags_dbg}> $<$<NOT:$<CONFIG:Debug>>:${cflags_rel}>)
|
||||||
target_compile_features(${target} PUBLIC cxx_std_11)
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
@@ -300,7 +304,9 @@ set(ASMJIT_SRC "")
|
|||||||
foreach(_src_file ${ASMJIT_SRC_LIST})
|
foreach(_src_file ${ASMJIT_SRC_LIST})
|
||||||
list(APPEND ASMJIT_SRC "${ASMJIT_DIR}/src/${_src_file}")
|
list(APPEND ASMJIT_SRC "${ASMJIT_DIR}/src/${_src_file}")
|
||||||
endforeach()
|
endforeach()
|
||||||
source_group(TREE "${ASMJIT_DIR}" FILES ${ASMJIT_SRC})
|
if (NOT ${CMAKE_VERSION} VERSION_LESS "3.8.0")
|
||||||
|
source_group(TREE "${ASMJIT_DIR}" FILES ${ASMJIT_SRC})
|
||||||
|
endif()
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# [AsmJit - Summary]
|
# [AsmJit - Summary]
|
||||||
|
|||||||
Reference in New Issue
Block a user