diff --git a/Jenkinsfile b/Jenkinsfile index adc0294..b077ed1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ pipeline { echo "Qt Dir is ${Qt6_DIR}" sh "export Qt6_DIR='/home/k4/Qt/6.10.2/gcc_64/lib/cmake/Qt6'" // sh "env | grep Qt" - sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release' + sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DQt6_DIR=$HOME/Qt/6.10.2/gcc_64/lib/cmake/Qt6' // echo "See localbuild says on the environment" // sh './localbuild.sh' diff --git a/localbuild.sh b/localbuild.sh index 3871f62..81e2fbb 100755 --- a/localbuild.sh +++ b/localbuild.sh @@ -4,10 +4,10 @@ rm -r build # enable CMake to find Qt6 -export Qt6_DIR=$HOME/Qt/6.10.2/gcc_64/lib/cmake/Qt6 +# export Qt6_DIR=$HOME/Qt/6.10.2/gcc_64/lib/cmake/Qt6 # project configuration -cmake -S . -B build -DCMAKE_BUILD_TYPE=Release +cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DQt6_DIR=$HOME/Qt/6.10.2/gcc_64/lib/cmake/Qt6 #build executable make -j$(nproc) --directory=build