mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-26 01:32:02 -05:00
84aeb59f26
Here is the warning currently being produced: CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.19/Modules/GNUInstallDirs.cmake:223 (message): Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target architecture is known. Please enable at least one language before including GNUInstallDirs. Call Stack (most recent call first): cmake/guidelineSupportLibrary.cmake:20 (include) CMakeLists.txt:4 (include) This warning is for project developers. Use -Wno-dev to suppress it. I noted how I fixed the error. This is caused by GNUInstallDirs automatically executing code just by including it. I also added -Werror=dev to the CI to ensure this never happens again. Co-authored-by: Juan Ramos <juanr0911@gmail.com>
18 lines
449 B
YAML
18 lines
449 B
YAML
steps:
|
|
- task: CMake@1
|
|
name: Configure
|
|
inputs:
|
|
workingDirectory: build
|
|
cmakeArgs: '-DCMAKE_CXX_STANDARD=$(GSL_CXX_STANDARD) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -Werror=dev .. '
|
|
|
|
- task: CMake@1
|
|
name: Build
|
|
inputs:
|
|
workingDirectory: build
|
|
cmakeArgs: '--build . '
|
|
|
|
- script: ctest . --output-on-failure --no-compress-output
|
|
name: CTest
|
|
workingDirectory: build
|
|
failOnStderr: true
|