this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add `CREATE_LINK` polyfill for older CMakes

+13
+1
CMakeLists.txt
··· 46 46 include(dsym) 47 47 include(xcproj) 48 48 include(architecture) 49 + include(create_symlink) 49 50 50 51 MACRO_ENSURE_OUT_OF_SOURCE_BUILD() 51 52
+12
cmake/create_symlink.cmake
··· 1 + # 2 + # used to create a symbolic link at configuration time 3 + # 4 + function(create_symlink target output_path) 5 + if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14.0") 6 + # use CREATE_LINK if we can 7 + file(CREATE_LINK "${target}" "${output_path}" SYMBOLIC) 8 + else() 9 + # fallback to `ln` otherwise 10 + execute_process(COMMAND ln -sfn "${target}" "${output_path}") 11 + endif() 12 + endfunction()