mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
try_run: Add support for LINK_LIBRARIES option.
Most functionality is already implemented in Source/cmCoreTryCompile.{h,cxx}.
Document and improve argument parsing.
This functionality is already being used by a number of modules, like
CheckCSourceCompiles.cmake, but it is not documented.
This commit is contained in:
committed by
Brad King
parent
07cbe3640e
commit
e2b1f0583f
@@ -1,5 +1,5 @@
|
||||
CMake Error at BadLinkLibraries.cmake:2 \(try_compile\):
|
||||
Only libraries may be used as try_compile IMPORTED LINK_LIBRARIES. Got
|
||||
not_a_library of type UTILITY.
|
||||
Only libraries may be used as try_compile or try_run IMPORTED
|
||||
LINK_LIBRARIES. Got not_a_library of type UTILITY.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
Reference in New Issue
Block a user