Modify the cmake prefix path

This commit is contained in:
gc87
2022-01-24 13:53:38 +08:00
committed by Parker Liu
parent 11e2089d29
commit f3b0b14030
+2 -3
View File
@@ -1,6 +1,5 @@
find_path(Neuron_INCLUDE_DIR neuron.h /usr/local/include/neuron)
find_library(Neuron_LIBRARY NAMES neuron-base PATHS /usr/local/lib)
find_path(Neuron_INCLUDE_DIR neuron.h ${CMAKE_PREFIX_PATH}/include/neuron)
find_library(Neuron_LIBRARY NAMES neuron-base PATHS ${CMAKE_PREFIX_PATH}/lib)
if (Neuron_INCLUDE_DIR AND Neuron_LIBRARY)
set(Neuron_FOUND TRUE)
endif()