mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
Merge topic 'xcode-framework-quoting'
00ecddd9ebTests: Enable Framework test case with spaces everywhere possibleb6cc9be009Merge branch 'backport-xcode-framework-quoting' into xcode-framework-quoting4f9a71974eXcode: Restore support for spaces in framework names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5899
This commit is contained in:
@@ -3696,7 +3696,7 @@ void cmGlobalXCodeGenerator::AddDependAndLinkInformation(cmXCodeObject* target)
|
||||
// implicit search path, so we need it
|
||||
libPaths.Add("-F " + this->XCodeEscapePath(fwDir));
|
||||
}
|
||||
libPaths.Add("-framework " + fwName);
|
||||
libPaths.Add("-framework " + this->XCodeEscapePath(fwName));
|
||||
} else {
|
||||
libPaths.Add(this->XCodeEscapePath(cleanPath));
|
||||
}
|
||||
|
||||
@@ -804,6 +804,7 @@ if(BUILD_TESTING)
|
||||
${build_generator_args}
|
||||
--build-project Framework
|
||||
--build-options
|
||||
-DMAKE_SUPPORTS_SPACES=${MAKE_SUPPORTS_SPACES}
|
||||
"-DCMAKE_INSTALL_PREFIX:PATH=${CMake_BINARY_DIR}/Tests/Framework/Install"
|
||||
--test-command bar)
|
||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Framework")
|
||||
|
||||
@@ -83,6 +83,16 @@ if(NOT XCODE OR NOT XCODE_VERSION VERSION_LESS 5)
|
||||
target_link_libraries(barStatic fooStatic)
|
||||
endif()
|
||||
|
||||
if(MAKE_SUPPORTS_SPACES AND NOT CMAKE_GENERATOR STREQUAL "Watcom WMake")
|
||||
add_library(space SHARED space.c)
|
||||
set_target_properties(space PROPERTIES
|
||||
FRAMEWORK TRUE
|
||||
OUTPUT_NAME "space space"
|
||||
)
|
||||
add_executable(use_space use_space.c)
|
||||
target_link_libraries(use_space PRIVATE space)
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
|
||||
if(APPLE)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
int space(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifdef _WIN32
|
||||
__declspec(dllimport)
|
||||
#endif
|
||||
int space(void);
|
||||
int main(void)
|
||||
{
|
||||
return space();
|
||||
}
|
||||
Reference in New Issue
Block a user