cmake/Tests/BuildDepends/Project/link_depends_no_shared_check.cmake

8 lines
184 B
CMake
Raw Normal View History

2013-03-16 19:13:01 +02:00
if(NOT EXISTS "${lib}" OR NOT EXISTS "${exe}")
file(REMOVE "${out}")
elseif("${exe}" IS_NEWER_THAN "${lib}")
file(WRITE "${out}" "1\n")
else()
file(WRITE "${out}" "0\n")
endif()