blob: c3bd4658fad477a57702bab9254b0520ff6cf294 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
enable_language (${CHECK_LANGUAGE})
include(CheckLinkerFlag)
check_linker_flag(${CHECK_LANGUAGE} "LINKER:-L,/dir" VALID_LINKER_FLAG)
if(NOT VALID_LINKER_FLAG)
message(SEND_ERROR "Test fail for valid linker flag.")
endif()
check_linker_flag(${CHECK_LANGUAGE} "LINKER:-D" INVALID_LINKER_FLAG)
if(INVALID_LINKER_FLAG)
message(SEND_ERROR "Test fail for invalid linker flag.")
endif()
|