cmake HAVE_THREE_PARAM_SCHED_SETAFFINITY examples

toggl-open-source/toggldesktop third_party/poco/Foundation/CMakeLists.txt :123

CHECK_CXX_SOURCE_COMPILES("
		#include <sched.h>
		int main() {
			cpu_set_t cpumask;
			sched_setaffinity( 0, sizeof(cpumask), &cpumask );
			return 0;
		}" HAVE_THREE_PARAM_SCHED_SETAFFINITY)

toggl-open-source/toggldesktop third_party/poco/Foundation/CMakeLists.txt :133

add_definitions(-DHAVE_THREE_PARAM_SCHED_SETAFFINITY)

toggl-open-source/toggldesktop third_party/poco/Foundation/CMakeLists.txt :134

else(HAVE_THREE_PARAM_SCHED_SETAFFINITY)

toggl-open-source/toggldesktop third_party/poco/Foundation/CMakeLists.txt :148

endif(HAVE_THREE_PARAM_SCHED_SETAFFINITY)