forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mongo-c-driver] remove compiler abs path (microsoft#42731)
- Loading branch information
Showing
5 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt | ||
index 6e295d68fb..54ab225ba7 100644 | ||
--- a/src/libmongoc/CMakeLists.txt | ||
+++ b/src/libmongoc/CMakeLists.txt | ||
@@ -474,7 +474,7 @@ if (NOT WIN32) | ||
mongoc_get_accept_args (MONGOC_SOCKET_ARG2 MONGOC_SOCKET_ARG3) | ||
endif () | ||
|
||
-set (MONGOC_CC ${CMAKE_C_COMPILER}) | ||
+cmake_path(GET CMAKE_C_COMPILER FILENAME MONGOC_CC) | ||
set (MONGOC_USER_SET_CFLAGS ${CMAKE_C_FLAGS}) | ||
set (MONGOC_USER_SET_LDFLAGS ${CMAKE_EXE_LINKER_FLAGS}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters