You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
388 B
15 lines
388 B
|
|
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()
|