mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[project] requires Windows to build breakgen lib
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
project(breakgen)
|
||||
|
||||
if(NOT WIN32)
|
||||
message(FATAL_ERROR "Windows only.")
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
|
||||
|
||||
add_library(breakgen SHARED AppMain.c)
|
||||
|
||||
if (CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
|
||||
if(CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
|
||||
set(JAVA_HOME $ENV{JDK_18_x64})
|
||||
set_target_properties(breakgen PROPERTIES OUTPUT_NAME "breakgen64")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user