myx-cmake/MyxCMake/modules/MyxCMakePaths.cmake

10 lines
372 B
CMake

if(MYX_CMAKE_LSB_DISTRIBUTOR_ID STREQUAL "AstraLinuxSE" OR
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()