Skip to content

Commit dd0b532

Browse files
committed
cmake: forward the macOS deployment target to the TIME function test
When using newer Xcode releases, older `gfortran` may be given a deployment target that is not understood if the host is on a new enough version. Forward the deployment target from the main project to the testing project to check with similar settings as the main project.
1 parent a066b6a commit dd0b532

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMAKE/CheckTimeFunction.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ macro(CHECK_TIME_FUNCTION FUNCTION VARIABLE)
1111
${PROJECT_BINARY_DIR}/INSTALL
1212
${PROJECT_SOURCE_DIR}/INSTALL
1313
TIMING secondtst_${FUNCTION}
14+
CMAKE_FLAGS
15+
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=${CMAKE_OSX_DEPLOYMENT_TARGET}
1416
OUTPUT_VARIABLE OUTPUT)
1517

1618
if(RES)

0 commit comments

Comments
 (0)