fix cmake build issue. fix build type checker. rm IronPad windows header including under linux

This commit is contained in:
2023-09-25 21:45:53 +08:00
parent 8083633a7b
commit 0a168ac5cc
6 changed files with 115 additions and 18 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#if !defined(LIBCMO_BUILD_DEBUG) && !defined(LIBCMO_BUILD_RELEASE)
#error "You must define LIBCMO_BUILD_DEBUG or LIBCMO_BUILD_RELEASE to indicate build type!"
#if !(defined(LIBCMO_BUILD_DEBUG) ^ defined(LIBCMO_BUILD_RELEASE))
#error "You must define ONE of LIBCMO_BUILD_DEBUG and LIBCMO_BUILD_RELEASE to indicate build type!"
#endif
// https://stackoverflow.com/questions/2164827/explicitly-exporting-shared-library-functions-in-linux