Open
Conversation
Contributor
Author
|
For Windows/MSVC users, here is a minimal CMake + vcpkg configure/build/install sequence (x64): @echo off
setlocal
echo --- Configure (Visual Studio generator) ---
set "VCPKG_ROOT=<your vcpkg folder>"
cmake -S . -B build ^
-A x64 ^
-DCMAKE_INSTALL_PREFIX="%CD%\build\install" ^
-DSC_ENABLE_MPI=ON ^
-DCMAKE_TOOLCHAIN_FILE="%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake" ^
-DCMAKE_C_FLAGS="/utf-8 /wd4100 /wd4702 /wd4267"
echo --- Build ---
cmake --build build --config Release
echo --- Install ---
cmake --install build --config Release
endlocalAdditional options for building shared libs (DLL) if supported by the project/config: -DBUILD_SHARED_LIBS=ON ^
-DSC_BUILD_SHARED_LIBS=ON ^
-DCMAKE_C_FLAGS="/DBUILDING_DLL /utf-8 /wd4100 /wd4702 /wd4267"Note that depending on the checkout location and local filesystem permissions, the install step may require elevated privileges on Windows, even when installing into a subdirectory of the build tree. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix MSVC-specific syntax issues
Following up on issue #232 .
This PR refines the previously proposed platform-independent annotation macros and updates the affected declarations to better cooperate with the existing
scindentworkflow.Changes since the previous revision:
scindentruns cleanly on the touched headers without warnings or errors.The goal remains to provide a unified, portable way to express attributes such as
noreturnandprintf-like annotations across compilers, while keeping the resulting code friendly to the current formatting infrastructure.Please let me know if you would prefer a different placement or style for any of the annotations.