However when I try to use this approach in my project I end up with the Cmake error: error: Objective-C was disabled in PCH file but is currently enabled even though when I was testing it I had the whole project set as OBJC like so: project(RcEngine LANGUAGES C CXX OBJC OBJCXX). Someone suggested I use this within the check for APPLE: set_source_files_properties($ PROPERTIES I followed this link to get it to compile with my C++ and PCH files, however that sets the whole project as OBJC++/OBJC (which wont compile under Windows or Linux). Objective-C for Swift Developers unlocks 25 years of prior art in macOS and iOS development, giving you. mm files that I want only compiled on MacOS and skipped on the other platforms. Sometimes youve got to go back to keep moving forward. Im working on a cross platform project that I want to be compatible with MacOS, Linux and Windows however im encountering a weird issue with Cmake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |