|
|
|
@ -10,15 +10,15 @@ if (NOT is_framework)
|
|
|
|
|
message(SEND_ERROR "foo-build::foo: FRAMEWORK not set.")
|
|
|
|
|
endif()
|
|
|
|
|
get_property(enable_exports TARGET foo-install::foo PROPERTY ENABLE_EXPORTS)
|
|
|
|
|
if (CAMKE_TAPI AND NOT enable_exports)
|
|
|
|
|
if (CMAKE_TAPI AND NOT enable_exports)
|
|
|
|
|
message(SEND_ERROR "foo-install::foo: ENABLE_EXPORTS not set.")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
get_property(implib TARGET foo-install::foo PROPERTY IMPORTED_IMPLIB_RELEASE)
|
|
|
|
|
if (CAMKE_TAPI AND NOT implib)
|
|
|
|
|
if (CMAKE_TAPI AND NOT implib)
|
|
|
|
|
message(SEND_ERROR "foo-install::foo: IMPORTED_IMPLIB_RELEASE not set.")
|
|
|
|
|
endif()
|
|
|
|
|
if (CAMKE_TAPI AND NOT implib MATCHES "foo.framework/Versions/A/foo.tbd$")
|
|
|
|
|
if (CMAKE_TAPI AND NOT implib MATCHES "foo.framework/Versions/A/foo.tbd$")
|
|
|
|
|
message(SEND_ERROR "foo-install::foo: ${implib}: wrong value for IMPORTED_IMPLIB_RELEASE.")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
@ -41,15 +41,15 @@ if (NOT is_framework)
|
|
|
|
|
message(SEND_ERROR "foo-build::foo: FRAMEWORK not set.")
|
|
|
|
|
endif()
|
|
|
|
|
get_property(enable_exports TARGET foo-build::foo PROPERTY ENABLE_EXPORTS)
|
|
|
|
|
if (CAMKE_TAPI AND NOT enable_exports)
|
|
|
|
|
if (CMAKE_TAPI AND NOT enable_exports)
|
|
|
|
|
message(SEND_ERROR "foo-build::foo: ENABLE_EXPORTS not set.")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
get_property(implib TARGET foo-build::foo PROPERTY IMPORTED_IMPLIB_RELEASE)
|
|
|
|
|
if (CAMKE_TAPI AND NOT implib)
|
|
|
|
|
if (CMAKE_TAPI AND NOT implib)
|
|
|
|
|
message(SEND_ERROR "foo-build::foo: IMPORTED_IMPLIB_RELEASE not set.")
|
|
|
|
|
endif()
|
|
|
|
|
if (CAMKE_TAPI AND NOT implib STREQUAL "${foo_BUILD}/foo.framework/Versions/A/foo.tbd")
|
|
|
|
|
if (CMAKE_TAPI AND NOT implib STREQUAL "${foo_BUILD}/foo.framework/Versions/A/foo.tbd")
|
|
|
|
|
message(SEND_ERROR "foo-build::foo: ${implib}: wrong value for IMPORTED_IMPLIB_RELEASE.")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|