Only search for Nanos6 and NODES in *_HOME vars
This commit is contained in:
parent
dd04c180a7
commit
fd1282863e
@ -1,8 +1,14 @@
|
||||
include(GNUInstallDirs)
|
||||
|
||||
find_library(NANOS6_LIBRARY NAMES nanos6)
|
||||
find_path(NANOS6_INCLUDE_DIR nanos6.h)
|
||||
find_file(NANOS6_WRAPPER NAMES nanos6-main-wrapper.o PATH_SUFFIXES "lib")
|
||||
if(DEFINED ENV{NANOS6_HOME})
|
||||
set(NANOS6_HOME "$ENV{NANOS6_HOME}")
|
||||
else()
|
||||
message(STATUS "NANOS6_HOME not set, refusing to search")
|
||||
endif()
|
||||
|
||||
find_library(NANOS6_LIBRARY NAMES nanos6 PATHS "${NANOS6_HOME}/lib" NO_DEFAULT_PATH)
|
||||
find_path(NANOS6_INCLUDE_DIR nanos6.h PATHS "${NANOS6_HOME}/include" NO_DEFAULT_PATH)
|
||||
find_file(NANOS6_WRAPPER NAMES nanos6-main-wrapper.o PATHS "${NANOS6_HOME}/lib" NO_DEFAULT_PATH)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
|
@ -1,8 +1,14 @@
|
||||
include(GNUInstallDirs)
|
||||
|
||||
find_library(NODES_LIBRARY NAMES nodes)
|
||||
find_path(NODES_INCLUDE_DIR nodes.h)
|
||||
find_file(NODES_WRAPPER NAMES nodes-main-wrapper.o PATH_SUFFIXES "lib")
|
||||
if(DEFINED ENV{NODES_HOME})
|
||||
set(NODES_HOME "$ENV{NODES_HOME}")
|
||||
else()
|
||||
message(STATUS "NODES_HOME not set, refusing to search")
|
||||
endif()
|
||||
|
||||
find_library(NODES_LIBRARY NAMES nanos6 PATHS "${NODES_HOME}/lib" NO_DEFAULT_PATH)
|
||||
find_file(NODES_WRAPPER NAMES nanos6-main-wrapper.o PATHS "${NODES_HOME}/lib" NO_DEFAULT_PATH)
|
||||
find_path(NODES_INCLUDE_DIR nanos6.h PATHS "${NODES_HOME}/include" NO_DEFAULT_PATH)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user