Skip to content

Commit

Permalink
updated lib
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed Mar 24, 2018
1 parent c9363cd commit ce2a73d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions huggle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ if (LINUX_SNAP)
add_definitions(-DHUGGLE_SNAP)
endif()

# Enable c++11
if(WIN32)
if(MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows -std=c++11")
endif()
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()

# This will ensure that produced binaries go to right place on windows
if(NOT MINGW AND WIN32)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR}/Release)
Expand Down Expand Up @@ -72,13 +81,6 @@ set(QT_USE_QTXML true)
set(QT_USE_QTWEBKIT true)
set(CMAKE_include_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
if(WIN32)
if(MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows -std=c++11")
endif()
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
#### Qt 4 AND 5 ####
if(QT5_BUILD)
find_package(Qt5Core REQUIRED)
Expand Down

0 comments on commit ce2a73d

Please sign in to comment.