mirror of
https://github.com/reactos/CMake.git
synced 2025-02-11 06:25:44 +00:00
![Brad King](/assets/img/avatar_default.png)
Add "LinkStatic" test that links a static executable against "libm.a". Pass both "/usr/lib/libm.a" and "-lm" to target_link_libraries to trigger the link type logic for both cases. If CMake incorrectly switches the link type to shared for "-lm" then the link will fail.
6 lines
59 B
C
6 lines
59 B
C
#include <math.h>
|
|
int main(void)
|
|
{
|
|
return (int)sin(0);
|
|
}
|