Changeset 46 in flair-src for branches/mavlink/tools/Dbt2csv
- Timestamp:
- Jul 26, 2016, 9:33:25 AM (8 years ago)
- Location:
- branches/mavlink
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/mavlink/tools/Dbt2csv/cmake_codeblocks.sh
r12 r46 1 1 DIR=build_$(uname -m) 2 3 function replace_cxx_flags () { 4 cmake_version=$(cmake --version) 5 cmake_version_number=$(expr match "$cmake_version" '.*\([0-9]\.[0-9]*\.[0-9]*\)') 6 first_digit=$(expr match "$cmake_version_number" '\([0-9]*\)') 7 second_digit=$(expr match "$cmake_version_number" '.*\.\([0-9]*\)\..*') 8 if [ "$first_digit" -ge "3" ] || [ "$second_digit" -ge "4" ]; then 9 find . -name build.make -type f -exec sed -i 's/CXX_FLAGS/CXX_FLAGS) $(CXX_INCLUDES/g' {} \; 10 fi 11 } 2 12 3 13 #verifie l'existence du lien symbolique build … … 25 35 rm -rf CMakeFiles 26 36 cmake ../ -G "CodeBlocks - Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_HOST_TOOLCHAIN} 37 replace_cxx_flags
Note:
See TracChangeset
for help on using the changeset viewer.