summaryrefslogtreecommitdiff
path: root/Modules/IntelVSImplicitPath/detect.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/IntelVSImplicitPath/detect.cmake')
-rw-r--r--Modules/IntelVSImplicitPath/detect.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/IntelVSImplicitPath/detect.cmake b/Modules/IntelVSImplicitPath/detect.cmake
new file mode 100644
index 000000000..20753bef4
--- /dev/null
+++ b/Modules/IntelVSImplicitPath/detect.cmake
@@ -0,0 +1,9 @@
+# look at each path and try to find ifconsol.lib
+set(LIB "$ENV{LIB}")
+foreach(dir ${LIB})
+ file(TO_CMAKE_PATH "${dir}" dir)
+ if(EXISTS "${dir}/ifconsol.lib")
+ file(WRITE output.cmake "list(APPEND implicit_dirs \"${dir}\")\n")
+ break()
+ endif()
+endforeach()