Skip to content

Commit 5849a9d

Browse files
committed
CDRIVER-5967 do not set CMP0042 to OLD (#1973)
Setting to `OLD` had no effect. An rpath was already applied. Setting the policy value to `OLD` is an error in CMake 4.
1 parent cdb0a8f commit 5849a9d

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

src/libbson/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ set(libbson_VERSION_FULL ${mongo-c-driver_VERSION_FULL})
2929
set(CMAKE_C_VISIBILITY_PRESET hidden)
3030
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
3131

32-
if (APPLE)
33-
cmake_policy (SET CMP0042 OLD)
34-
endif ()
35-
3632
# .d8888b. 888 888 d8b
3733
# d88P Y88b 888 888 Y8P
3834
# Y88b. 888 888

src/libbson/examples/cmake/find_package/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
cmake_minimum_required (VERSION 3.0)
1919

20-
if (APPLE)
21-
cmake_policy (SET CMP0042 OLD)
22-
endif ()
23-
2420
project (hello_bson LANGUAGES C)
2521

2622
# NOTE: For this to work, the CMAKE_PREFIX_PATH variable must be set to point to

src/libbson/examples/cmake/find_package_static/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
cmake_minimum_required (VERSION 2.8)
1919

20-
if (APPLE)
21-
cmake_policy (SET CMP0042 OLD)
22-
endif ()
23-
2420
project (hello_bson LANGUAGES C)
2521

2622
# NOTE: For this to work, the CMAKE_PREFIX_PATH variable must be set to point to

src/libmongoc/examples/cmake/find_package/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
cmake_minimum_required (VERSION 3.0)
1919

20-
if (APPLE)
21-
cmake_policy (SET CMP0042 OLD)
22-
endif ()
23-
2420
project (hello_mongoc LANGUAGES C)
2521

2622
# NOTE: For this to work, the CMAKE_PREFIX_PATH variable must be set to point to

src/libmongoc/examples/cmake/find_package_static/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
cmake_minimum_required (VERSION 3.0)
1919

20-
if (APPLE)
21-
cmake_policy (SET CMP0042 OLD)
22-
endif ()
23-
2420
project (hello_mongoc LANGUAGES C)
2521

2622
# NOTE: For this to work, the CMAKE_PREFIX_PATH variable must be set to point to

0 commit comments

Comments
 (0)