qr 6.5.1: still missed with cmake version, trying 3.18.3

This commit is contained in:
kleuter
2023-10-31 23:36:59 +01:00
parent c386aac06f
commit 72a8e4201b
2808 changed files with 8828 additions and 3966 deletions

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION "@CMAKE_VERSION@")
project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES C)
cmake_policy(SET CMP0069 NEW)
add_library(foo foo.c)
add_executable(boo main.c)
target_link_libraries(boo PUBLIC foo)

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION "@CMAKE_VERSION@")
project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES CXX)
cmake_policy(SET CMP0069 NEW)
add_library(foo foo.cpp)
add_executable(boo main.cpp)
target_link_libraries(boo PUBLIC foo)

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION "@CMAKE_VERSION@")
project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES Fortran)
cmake_policy(SET CMP0069 NEW)
add_library(foo foo.f)
add_executable(boo main.f)
target_link_libraries(boo PUBLIC foo)

View File

@ -0,0 +1,4 @@
int foo()
{
return 0x42;
}

View File

@ -0,0 +1,4 @@
int foo()
{
return 0x42;
}

View File

@ -0,0 +1,2 @@
SUBROUTINE FOO
END

View File

@ -0,0 +1,6 @@
int foo();
int main()
{
return foo();
}

View File

@ -0,0 +1,6 @@
int foo();
int main()
{
return foo();
}

View File

@ -0,0 +1,3 @@
PROGRAM BOO
CALL FOO()
END