Skip to content

Commit

Permalink
C++11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed Jul 27, 2023
1 parent f84f567 commit de6713e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/uwuw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Set the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Add the additional compiler flag for Visual Studio
if (MSVC)
target_compile_options(uwuw PRIVATE /std:c++11)
endif()

message("")

# C++11 support
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++11")

file(GLOB SRC_FILES "*.cpp")
file(GLOB PUB_HEADERS "*.hpp")

Expand Down

0 comments on commit de6713e

Please sign in to comment.