Current Path : /usr/opt/nge/share/cmake-3.6/Modules/Platform/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/nge/share/cmake-3.6/Modules/Platform/GNUtoMS_lib.cmake |
# Usage: cmake -Dlib=lib.bat -Ddef=out.def -Ddll=out.dll -Dimp=out.dll.a -P GNUtoMS_lib.cmake get_filename_component(name ${dll} NAME) # .dll file name string(REGEX REPLACE "\\.dll\\.a$" ".lib" out "${imp}") # .dll.a -> .lib execute_process( COMMAND ${lib} /def:${def} /name:${name} /out:${out} RESULT_VARIABLE res ) if(res) message(FATAL_ERROR "lib failed: ${res}") endif()