swift-project / pilotclient

Cross-platform cross-simulator pilot client for virtual air traffic networks
https://swift-project.org
GNU General Public License v3.0
94 stars 28 forks source link

Cmake error: no default for CMAKE_BUILD_TYPE #286

Closed talkingerbil closed 4 months ago

talkingerbil commented 6 months ago

Built on linux just now. First attempt fails with:

Make Error at CMakeLists.txt:126 (if): if given arguments: "UNIX" "AND" "NOT" "APPLE" "AND" "STREQUAL" "Debug" Unknown arguments specified

Turns out CMAKE_BUILD_TYPE isn't set by default. Maybe set something in the cmake file or add in -DCMAKE_BUILD_TYPE=Release to the example command on the wiki page?

https://github.com/swift-project/pilotclient/wiki/Build:-Build

ltoenning commented 6 months ago

Thanks for reporting. I will add a default CMAKE_BUILD_TYPE soon.