myx-cmake/MyxCMake/modules/MyxCMakeCompat.cmake

10 lines
371 B
CMake
Raw Normal View History

if(MYX_CMAKE_LSB_DISTRIBUTOR_ID STREQUAL "AstraLinuxSE" OR
2022-05-06 09:49:46 +00:00
MYX_CMAKE_LSB_DISTRIBUTOR_ID STREQUAL "AstraLinuxCE")
set(CMAKE_37_MODULES_DIR "/usr/share/cmake-3.7/Modules")
if(IS_DIRECTORY ${CMAKE_37_MODULES_DIR})
if(NOT ${CMAKE_37_MODULES_DIR} IN_LIST CMAKE_MODULE_PATH)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_37_MODULES_DIR})
endif()
endif()
endif()