Skip to content

Commit

Permalink
Fix C standard declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j committed Aug 19, 2024
1 parent bf505d9 commit 28587cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c/wsgup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.5.0)

project(wsgup VERSION 0.0.1 LANGUAGES C)
set_property(TARGET wsgup PROPERTY C_STANDARD 99)

# set(OPENSSL_ROOT_DIR "/usr/lib")
# set(OPENSSL_USE_STATIC_LIBS TRUE)
Expand Down Expand Up @@ -35,3 +34,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC include)
target_link_libraries(${PROJECT_NAME} OpenSSL::Crypto cJSON)

set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 99)

0 comments on commit 28587cd

Please sign in to comment.