1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2024-11-27 15:20:47 +01:00

fix(compile): "/usr/local/bin/cmoe": not found

This commit is contained in:
源文雨 2024-04-12 22:55:42 +09:00
parent c1fe6dc3f5
commit 1af15e75fe
2 changed files with 10 additions and 2 deletions

View File

@ -5,11 +5,19 @@ SET(CMAKE_BUILD_TYPE "Release")
include_directories("/usr/local/include") include_directories("/usr/local/include")
link_directories("/usr/local/lib") link_directories("/usr/local/lib")
if (BUILD NOT STREQUAL "docker")
#c99
add_compile_options(-std=c99)
message(STATUS "optional:-std=c99")
endif ()
add_executable(cmoe cmoe.c) add_executable(cmoe cmoe.c)
add_executable(cmoeditor editor.c) add_executable(cmoeditor editor.c)
target_link_libraries(cmoe spb) target_link_libraries(cmoe spb)
target_link_libraries(cmoeditor spb) target_link_libraries(cmoeditor spb)
#INSTALL(TARGETS cmoe RUNTIME DESTINATION bin) if (BUILD STREQUAL "docker")
INSTALL(TARGETS cmoe RUNTIME DESTINATION bin)
endif ()
INSTALL(TARGETS cmoeditor RUNTIME DESTINATION bin) INSTALL(TARGETS cmoeditor RUNTIME DESTINATION bin)

View File

@ -37,7 +37,7 @@ COPY ./CMakeLists.txt .
RUN mkdir build \ RUN mkdir build \
&& cd build \ && cd build \
&& cmake .. \ && cmake -DBUILD=docker .. \
&& make install && make install
FROM alpine:latest FROM alpine:latest