Skip to content

Commit

Permalink
Add crosscompile settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jensboe committed Nov 19, 2023
1 parent 908cfc5 commit f654597
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 2 additions & 8 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,9 @@
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
"CMAKE_C_COMPILER": "C:/Program Files/LLVM/bin/clang.exe",
"CMAKE_CXX_COMPILER": "C:/Program Files/LLVM/bin/clang++.exe"
}
},
{
"name": "unix",
"displayName": "unix",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}"
}
]
}
6 changes: 4 additions & 2 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
if(CMAKE_CROSSCOMPILING)

add_subdirectory(embedded)
if(win32)
add_subdirectory(tests)
else()
add_subdirectory(tests)
endif()

0 comments on commit f654597

Please sign in to comment.