File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,14 @@ if (USE_AERON)
62
62
endif ()
63
63
set (CMAKE_REQUIRED_INCLUDES ${AERON_INCLUDE_DIR} )
64
64
check_include_file_cxx("FragmentAssembler.h" HAS_AERON_HEADER)
65
- if (HAS_AERON_HEADER)
66
- set (CMAKE_REQUIRED_LINK_DIRECTORIES ${AERON_LIBRARY_DIR} )
67
- set (CMAKE_REQUIRED_LIBRARIES ${AERON_LIBRARY} )
68
- check_cxx_source_compiles("int main() {return 0;}" HAS_AERON)
65
+ if (CMAKE_VERSION VERSION_GREATER "3.31.0" )
66
+ if (HAS_AERON_HEADER)
67
+ set (CMAKE_REQUIRED_LINK_DIRECTORIES ${AERON_LIBRARY_DIR} )
68
+ set (CMAKE_REQUIRED_LIBRARIES ${AERON_LIBRARY} )
69
+ check_cxx_source_compiles("int main() {return 0;}" HAS_AERON)
70
+ endif ()
71
+ else ()
72
+ set (HAS_AERON ${HAS_AERON_HEADER} )
69
73
endif ()
70
74
unset (CMAKE_REQUIRED_INCLUDES)
71
75
unset (CMAKE_REQUIRED_LIBRARIES)
You can’t perform that action at this time.
0 commit comments