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)
6262 endif ()
6363 set (CMAKE_REQUIRED_INCLUDES ${AERON_INCLUDE_DIR} )
6464 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} )
6973 endif ()
7074 unset (CMAKE_REQUIRED_INCLUDES)
7175 unset (CMAKE_REQUIRED_LIBRARIES)
You can’t perform that action at this time.
0 commit comments