Добавлен каталог для поиска модулей в ОС Астра
This commit is contained in:
@ -14,6 +14,7 @@ include(MyxCMakeGlobalFunctions)
|
||||
include(MyxCMakeGlobalVariables)
|
||||
include(MyxCMakeDates)
|
||||
include(MyxCMakeLSBInfo)
|
||||
include(MyxCMakePaths)
|
||||
include(MyxCMakeCompiler)
|
||||
include(MyxCMakeCompilerFlags)
|
||||
include(MyxCMakeDistCC)
|
||||
|
9
MyxCMake/modules/MyxCMakePaths.cmake
Normal file
9
MyxCMake/modules/MyxCMakePaths.cmake
Normal file
@ -0,0 +1,9 @@
|
||||
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()
|
Reference in New Issue
Block a user