mirror of https://github.com/BOINC/boinc.git
[mingw] Fix build of the cmake project
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
parent
e72eae2cf3
commit
3c7a38d759
|
@ -172,6 +172,12 @@ if(WIN32 OR APPLE)
|
||||||
set_target_properties(boincapi PROPERTIES IMPORT_PREFIX "lib")
|
set_target_properties(boincapi PROPERTIES IMPORT_PREFIX "lib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# currently this is for MinGW only
|
||||||
|
set(build_options "")
|
||||||
|
if(HAVE_STRCASECMP)
|
||||||
|
list(APPEND build_options "-DHAVE_STRCASECMP")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
target_include_directories(boinc PUBLIC
|
target_include_directories(boinc PUBLIC
|
||||||
$<BUILD_INTERFACE:${BOINC_DIR}/lib/mac>
|
$<BUILD_INTERFACE:${BOINC_DIR}/lib/mac>
|
||||||
|
@ -187,12 +193,14 @@ elseif(WIN32)
|
||||||
-D_CRT_SECURE_NO_WARNINGS
|
-D_CRT_SECURE_NO_WARNINGS
|
||||||
-DWIN32
|
-DWIN32
|
||||||
-D_CONSOLE
|
-D_CONSOLE
|
||||||
|
${build_options}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(boincapi PUBLIC
|
target_compile_definitions(boincapi PUBLIC
|
||||||
-D_CRT_SECURE_NO_WARNINGS
|
-D_CRT_SECURE_NO_WARNINGS
|
||||||
-DWIN32
|
-DWIN32
|
||||||
-D_CONSOLE
|
-D_CONSOLE
|
||||||
|
${build_options}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(boinc PUBLIC
|
target_include_directories(boinc PUBLIC
|
||||||
|
|
Loading…
Reference in New Issue