extract.cmake 373 B

123456789101112
  1. file(STRINGS env.txt LIB REGEX "^LIB=.*$")
  2. string(REPLACE "LIB=" "" LIB "${LIB}" )
  3. # change LIB from a string to a ; separated list of paths
  4. set(LIB ${LIB})
  5. # look at each path and try to find ifconsol.lib
  6. foreach( dir ${LIB})
  7. file(TO_CMAKE_PATH "${dir}" dir)
  8. if(EXISTS "${dir}/ifconsol.lib")
  9. file(WRITE implict_link.txt ${dir})
  10. return()
  11. endif()
  12. endforeach()