Set CMAKE_TRY_COMPILE_TARGET_TYPE to STATIC_LIBRARY.

remove-hacks
Dan Gohman 6 years ago
parent 372bac34d1
commit 3ce68ef333

@ -27,3 +27,6 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
# Don't attempt to link, as the builtins library may not be available yet.
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

Loading…
Cancel
Save