Skip to content

Commit

Permalink
Do not generate line endings diff on build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRyabinin committed Mar 30, 2023
1 parent e2c2e3e commit 5374a75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/aws-cpp-sdk-core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if(VERSION_STRING)
set(AWSSDK_VERSION_PATCH ${AWSSDK_VERSION_PATCH})
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/VersionConfig.h.in"
"${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/VersionConfig.h")
"${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/VersionConfig.h"
NEWLINE_STYLE UNIX)
else()
message("Not able to compute versioning string, not updating.")
endif()
Expand All @@ -37,7 +38,8 @@ else()
endif()

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h.in"
"${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h")
"${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h"
NEWLINE_STYLE UNIX)

file(GLOB AWS_HEADERS "include/aws/core/*.h")
file(GLOB AWS_AUTH_HEADERS "include/aws/core/auth/*.h")
Expand Down
4 changes: 2 additions & 2 deletions src/aws-cpp-sdk-core/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
configure_file(
VersionConfig.h.in
aws/core/VersionConfig.h
@ONLY
@ONLY NEWLINE_STYLE UNIX
)

message(STATUS "Generating source file SDKConfig.h for setting memory management options")
configure_file(
SDKConfig.h.in
aws/core/SDKConfig.h
@ONLY
@ONLY NEWLINE_STYLE UNIX
)

0 comments on commit 5374a75

Please sign in to comment.