well, looks like cmake 3.17 is required though

This commit is contained in:
kleuter
2023-10-31 23:34:31 +01:00
parent 595eafc085
commit c386aac06f
2755 changed files with 7588 additions and 3277 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