diff --git a/CMakeLists.txt b/CMakeLists.txt index 44cd7e0c..b3c16887 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ option(WITH_LIBBACKTRACE "Enables linking to libbacktrace as an external project # Must include cotire before anything else for auto pch setup include(cmake/cotire.cmake) +# Declare our project, libks +project(LibKS VERSION 1.3.0 LANGUAGES C CXX) +message("LibKS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") + # Load our common utility api and setup the platfomrm and build include(cmake/ksutil.cmake) ksutil_setup_platform() @@ -39,10 +43,6 @@ if (KS_PLAT_WIN OR WITH_KS_TEST) endif() endif() -# Declare our project, libks -project(LibKS VERSION 1.3.0 LANGUAGES C CXX) -message("LibKS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") - # Set package version set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) diff --git a/cmake/FindLibM.cmake b/cmake/FindLibM.cmake index c28542a8..bd65cd05 100644 --- a/cmake/FindLibM.cmake +++ b/cmake/FindLibM.cmake @@ -8,11 +8,7 @@ # A user may set ``LIBM_ROOT`` to a math library installation root to tell this # module where to look. -find_path(LIBM_INCLUDE_DIRS - NAMES math.h - PATHS /usr/include /usr/local/include /usr/local/bic/include - NO_DEFAULT_PATH -) +find_path(LIBM_INCLUDE_DIRS math.h) find_library(LIBM_LIBRARIES m) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(LibM DEFAULT_MSG LIBM_LIBRARIES LIBM_INCLUDE_DIRS) diff --git a/src/include/libks/ks_platform.h b/src/include/libks/ks_platform.h index 5305b00b..47fc22ec 100644 --- a/src/include/libks/ks_platform.h +++ b/src/include/libks/ks_platform.h @@ -91,7 +91,7 @@ KS_BEGIN_EXTERN_C #include #include #include -#include +#include #include #include #include