Commit 8f56e7a 1 parent 299e3b4 commit 8f56e7a Copy full SHA for 8f56e7a
File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ cmake_policy(VERSION 3.5)
10
10
11
11
project (cmake-sbom)
12
12
13
+ list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /cmake)
14
+
13
15
include (sbom)
14
16
15
17
reuse_lint()
Original file line number Diff line number Diff line change 16
16
mkdir -p build
17
17
cd build
18
18
19
- cmake ../../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=" ` pwd` /deploy" \
20
- -DCMAKE_MODULE_PATH =" ` pwd` /../../../cmake " -DPython3_ROOT_DIR =" ` pwd` /../../venv" " $@ "
19
+ cmake ../../.. --no-warn-unused-cli - DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=" ` pwd` /deploy" \
20
+ -DPython3_ROOT_DIR =" ` pwd` /../../venv " -DPython3_EXECUTABLE =" ` pwd` /../../venv/bin/python3 " " $@ "
21
21
22
22
cmake --build . --target install
23
23
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if not exist build mkdir build
32
32
if errorlevel 1 goto error
33
33
cd build
34
34
if errorlevel 1 goto error
35
- cmake ..\..\.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=" %cmake_here% /build/deploy" -DCMAKE_MODULE_PATH= " %cmake_here% /../../cmake " - DPython3_EXECUTABLE=" %cmake_here% /../venv/Scripts/python.exe" %*
35
+ cmake ..\..\.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=" %cmake_here% /build/deploy" -DPython3_EXECUTABLE=" %cmake_here% /../venv/Scripts/python.exe" %*
36
36
if errorlevel 1 goto error
37
37
cmake --build . --target install
38
38
if errorlevel 1 goto error
You can’t perform that action at this time.
0 commit comments