summaryrefslogtreecommitdiffstats
path: root/contrib/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cmake')
-rw-r--r--contrib/cmake/FindSWI.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/cmake/FindSWI.cmake b/contrib/cmake/FindSWI.cmake
index d715615..acea32c 100644
--- a/contrib/cmake/FindSWI.cmake
+++ b/contrib/cmake/FindSWI.cmake
@@ -26,6 +26,7 @@ list (APPEND SWI_SEARCH_PATHS
${CMAKE_FIND_ROOT_PATH}
"/usr/lib/swi-prolog/"
"/opt/local/"
+ "/usr/local/"
"C:/Program Files (x86)/swipl"
"C:/Program Files/swipl"
)
@@ -38,6 +39,7 @@ foreach(SWI_SEARCH_PATH ${SWI_SEARCH_PATHS})
if(NOT LOOP_DONE)
file(GLOB SWI_VERSIONS ${SWI_SEARCH_PATH}/lib/swipl*)
if (SWI_VERSIONS)
+# message("SWI_VERSIONS: ${SWI_VERSIONS}")
set(LOOP_DONE 1)
list(SORT SWI_VERSIONS)
list(REVERSE SWI_VERSIONS)
@@ -47,6 +49,8 @@ foreach(SWI_SEARCH_PATH ${SWI_SEARCH_PATHS})
endif()
endforeach()
+#message("SWI_VERSION: ${SWI_VERSION}")
+
set(SWI_PLATFORMS)
foreach (SWI_SEARCH_PATH ${SWI_SEARCH_PATHS})
file(GLOB CURR_SWI_PLATFORMS ${SWI_SEARCH_PATH}/lib/swipl-${SWI_VERSION}/lib/*)