View output_macos.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- CMake 3.26.0 Darwin | |
-- source directory: /tmp | |
uppercase: /tmp/cmake_9X4EF26O4A20GGJB | |
lowercase: /tmp/cmake_9x4ef26o4a20ggjb | |
-- touch file /tmp/cmake_9x4ef26o4a20ggjb | |
-- Case-insensitive filesystem detected: | |
get_filename_component(REALPATH): /private/tmp/cmake_9x4ef26o4a20ggjb | |
get_filename_component(ABSOLUTE): /tmp/cmake_9X4EF26O4A20GGJB | |
file(REAL_PATH): /private/tmp/cmake_9x4ef26o4a20ggjb | |
cmake_path(ABSOLUTE_PATH): /tmp/cmake_9X4EF26O4A20GGJB |
View CheckStdFlag.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: for check_*() functions, CMAKE_CXX_STANDARD and CMAKE_C_STANDARD are automatically applied | |
# if the standard requested is higher than the compiler default. | |
include(CheckCCompilerFlag) | |
include(CheckCXXCompilerFlag) | |
function(check_std_flag lang std_flag) | |
set(CMAKE_REQUIRED_FLAGS) |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.12) | |
project(stdout_buffering LANGUAGES CXX) | |
enable_testing() | |
set(CMAKE_CXX_STANDARD 11) | |
add_executable(print_flush print_flush.cpp) | |
add_test(NAME print_flush COMMAND print_flush) |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14...3.26) | |
project(MUMPS_example | |
LANGUAGES C Fortran | |
) | |
enable_testing() | |
include(FetchContent) |
View TestExample.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classdef TestExample < matlab.unittest.TestCase | |
methods (Test) | |
function testExample(testCase) | |
testCase.verifyEqual(1, 1); | |
end | |
end |
View git_no_credential_prompt.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.5) | |
set(urls | |
"https://github.com/scivision/not-a-repo.git" | |
"ssh://github.com/scivision/not-a-repo.git" | |
) | |
find_package(Git REQUIRED) | |
set(ENV{GIT_TERMINAL_PROMPT} 0) |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14...3.26) | |
project(EPretryDownload LANGUAGES C CXX) | |
include(FetchContent) | |
set(url https://github.com/scivision/fortran-filesystem) | |
set(tag v4.4.0) |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.19...3.26) | |
project(H5fortran_example LANGUAGES C Fortran) | |
enable_testing() | |
include(GNUInstallDirs) | |
option(h5fortran_BUILD_TESTING "h5fortran internal tests") | |
set(h5fortran_VERSION "v4.10.2") |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14) | |
project(H5fortran_example LANGUAGES C Fortran) | |
enable_testing() | |
include(FetchContent) | |
option(h5fortran_BUILD_TESTING "h5fortran internal tests") |
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.19) | |
project(mexDemo LANGUAGES C) | |
enable_testing() | |
find_package(Matlab REQUIRED COMPONENTS MAIN_PROGRAM) | |
matlab_get_release_name_from_version(${Matlab_VERSION_STRING} release) | |
message(STATUS "Matlab release: ${release}") | |
find_file(matmul_src |
NewerOlder