mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
Tests: Remove explicit no-signing marks from BundleTest
These were added by commit e29a92f525 (Xcode: Make BundleTests
compatible with Xcode 11, 2019-09-01, v3.16.0-rc1~158^2). The
real problem is that the `.app` is constructed with text files
under the `.app/Contents/MacOS/` folder. Move those, and drop
the special no-signing configuration.
This commit is contained in:
@@ -52,8 +52,8 @@ int foo(char* exec)
|
||||
(void)br;
|
||||
|
||||
int res1 = findBundleFile(exec, "Resources/randomResourceFile.plist");
|
||||
int res2 = findBundleFile(exec, "MacOS/SomeRandomFile.txt");
|
||||
int res3 = findBundleFile(exec, "MacOS/README.rst");
|
||||
int res2 = findBundleFile(exec, "Other/SomeRandomFile.txt");
|
||||
int res3 = findBundleFile(exec, "Other/README.rst");
|
||||
if (!res1 || !res2 || !res3) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ set_source_files_properties(
|
||||
"${BundleTest_SOURCE_DIR}/SomeRandomFile.txt"
|
||||
"${BundleTest_SOURCE_DIR}/../../README.rst"
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION MacOS
|
||||
MACOSX_PACKAGE_LOCATION Other
|
||||
)
|
||||
|
||||
add_executable(SecondBundle
|
||||
@@ -35,11 +35,7 @@ install(TARGETS SecondBundle DESTINATION Applications)
|
||||
# installed into a location that uses this output name this will fail if the
|
||||
# bundle does not respect the name. Also the executable will not be found by
|
||||
# the test driver if this does not work.
|
||||
set_target_properties(SecondBundle PROPERTIES
|
||||
OUTPUT_NAME SecondBundleExe
|
||||
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ""
|
||||
XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO"
|
||||
)
|
||||
set_target_properties(SecondBundle PROPERTIES OUTPUT_NAME SecondBundleExe)
|
||||
|
||||
# Express one app bundle in terms of another's SOURCES to verify that
|
||||
# the generators do not expose the Info.plist of one to the other.
|
||||
|
||||
@@ -19,7 +19,7 @@ set_source_files_properties(
|
||||
SomeRandomFile.txt
|
||||
"${BundleTest_SOURCE_DIR}/../../README.rst"
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION MacOS
|
||||
MACOSX_PACKAGE_LOCATION Other
|
||||
)
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/foobar")
|
||||
@@ -56,11 +56,7 @@ install(TARGETS BundleTest DESTINATION Applications)
|
||||
# installed into a location that uses this output name this will fail if the
|
||||
# bundle does not respect the name. Also the executable will not be found by
|
||||
# the test driver if this does not work.
|
||||
set_target_properties(BundleTest PROPERTIES
|
||||
OUTPUT_NAME BundleTestExe
|
||||
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ""
|
||||
XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO"
|
||||
)
|
||||
set_target_properties(BundleTest PROPERTIES OUTPUT_NAME BundleTestExe)
|
||||
|
||||
# Test executable versioning if it is supported.
|
||||
if(NOT XCODE)
|
||||
|
||||
Reference in New Issue
Block a user