asmodehn / wkcmake

Workshop CMake - For quick and easy CMake setup of project, based on simple folder and file naming conventions
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

WkPlatform : improve Posix check #24

Open asmodehn opened 11 years ago

asmodehn commented 11 years ago

WkPlatform.cmake now looks for unistd.h and if found , the WkPlatform.h header then define the WK_PLATFORM_POSIX preprocessor definition. However POSIX requires more than unistd.h We need to improve the platform detection code, at least for posix checks inside the cmake script. A good start is to have a look at boost/config/posix_features.hpp, which should contain what is needed by the POSIX standard... In general the platform detection WkCMake should be improved and be more standardized if ever possible, but this task concerns posix only, which is a major target platform.