From ba3b7094454741f32589ee0dc005f01319b4f438 Mon Sep 17 00:00:00 2001 From: Tao Lin <831611+mirguest@users.noreply.github.com> Date: Fri, 23 Oct 2020 20:18:15 +0800 Subject: [PATCH] Fix the issue which picking the wrong GSL See details in https://github.com/key4hep/k4-spack/issues/77 --- cmakemodules/FindGSL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmakemodules/FindGSL.cmake b/cmakemodules/FindGSL.cmake index 218a5dd..1772880 100644 --- a/cmakemodules/FindGSL.cmake +++ b/cmakemodules/FindGSL.cmake @@ -16,7 +16,7 @@ # find gsl-config SET( GSL_CONFIG_EXECUTABLE GSL_CONFIG_EXECUTABLE-NOTFOUND ) MARK_AS_ADVANCED( GSL_CONFIG_EXECUTABLE ) -FIND_PROGRAM( GSL_CONFIG_EXECUTABLE gsl-config PATHS ${GSL_DIR}/bin NO_DEFAULT_PATH ) +FIND_PROGRAM( GSL_CONFIG_EXECUTABLE gsl-config PATHS ${GSL_DIR}/bin ) IF( NOT GSL_DIR ) FIND_PROGRAM( GSL_CONFIG_EXECUTABLE gsl-config ) ENDIF()