From 94cbc852ec08d19b3cdff2c8c7c67cd962ae687c Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 22 Jun 2018 09:39:48 +0300 Subject: [PATCH] Define WINDOWS/UNIX macroses. --- src/loader/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/loader/CMakeLists.txt b/src/loader/CMakeLists.txt index 5db9867..524af55 100644 --- a/src/loader/CMakeLists.txt +++ b/src/loader/CMakeLists.txt @@ -8,4 +8,9 @@ SET (LC_RELATIVE_PREFIX "..") CONFIGURE_FILE ( "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/library_constructor.c.in" "${LibExtraSources}") SET (LibLinkLibs ${PROJECT_LOWERCASE_NAME}-iface gmodule-2.0) INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/src/iface") +IF (WIN32) + SET (BinValaOpts -D WINDOWS) +ELSE (WIN32) + SET (BinValaOpts -D UNIX) +ENDIF (WIN32) INCLUDE (ValaLibCommonRules)