Skip to content

Commit 2344038

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 10996c5 commit 2344038

File tree

9 files changed

+0
-36
lines changed

9 files changed

+0
-36
lines changed

src/libbson/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
3333
# potentially co-locate additional future major versions.
3434
set (BSON_API_VERSION 1.0)
3535

36-
if (APPLE)
37-
cmake_policy (SET CMP0042 OLD)
38-
endif ()
39-
4036

4137
# .d8888b. 888 888 d8b
4238
# d88P Y88b 888 888 Y8P

src/libbson/examples/cmake-deprecated/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 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/libbson/examples/cmake-deprecated/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/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-deprecated/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 2.8)
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-deprecated/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_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/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)