Skip to content

Commit

Permalink
Merge pull request #252 from ClausKlein/feature/update-msvc-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Mar 11, 2024
2 parents 2108560 + 339ea38 commit d646582
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CrossCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ macro(enable_cross_compiler)
else()
if(NOT DEFINED EMSCRIPTEN_ROOT)
include(FetchContent)
message(STATUS "fetch emscripten repo. ...")
message(STATUS "fetch emscripten repo main branch. ...")
FetchContent_Declare(
emscripten GIT_REPOSITORY https://github.com/emscripten-core/emscripten GIT_TAG main
)
Expand Down
2 changes: 1 addition & 1 deletion src/VCEnvironment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ macro(msvc_toolchain)
include(FetchContent)
FetchContent_Declare(
_msvc_toolchain GIT_REPOSITORY "https://github.com/MarkSchofield/WindowsToolchain.git"
GIT_TAG "17c6d4ff6531ee268b9a22a8bcfbb3809e970e4e"
GIT_TAG "v0.9.0"
)
FetchContent_MakeAvailable(_msvc_toolchain)
include("${_msvc_toolchain_SOURCE_DIR}/Windows.MSVC.toolchain.cmake")
Expand Down
20 changes: 20 additions & 0 deletions tests/myproj/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.21...3.29)

set(CMAKE_CXX_STANDARD 20)

project(myproj_test VERSION 0.2.0 LANGUAGES CXX)

find_package(myproj_header_only_lib 0.2.0 CONFIG REQUIRED)

# Executable
add_executable(main ../src/main/main.cpp)
target_link_libraries(
main
PRIVATE myproj_header_only_lib::lib #
myproj_header_only_lib::myproj_project_options
myproj_header_only_lib::myproj_project_warnings
)

## tests
enable_testing()
add_test(NAME main COMMAND main)

0 comments on commit d646582

Please sign in to comment.