Skip to content

Commit

Permalink
MSVC building fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dynexcoin authored Feb 15, 2023
1 parent 2dfb358 commit 852efff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.8.6)
set(VERSION "0.1")


option(CMAKE_USE_WIN32_THREADS_INIT "using WIN32 threads" ON)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo Release CACHE TYPE INTERNAL)
set(CMAKE_SKIP_INSTALL_RULES ON)
Expand Down Expand Up @@ -73,7 +76,7 @@ else()
set(CXX_WARNINGS "-Wno-reorder -Wno-missing-field-initializers")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 ${MINGW_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} -maes")
if(NOT APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${MINGW_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} -maes")
if(APPLE)
Expand Down Expand Up @@ -108,7 +111,7 @@ else()
endif()

# CURL is requred:
#FIND_PACKAGE(CURL REQUIRED)
FIND_PACKAGE(CURL REQUIRED)
#IF(CURL_FOUND)
# INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
# SET(CURL_LIBRARIES(${CURL_LIBRARIES}))
Expand Down

0 comments on commit 852efff

Please sign in to comment.