1 # Extra rules for Windows builds
4 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
6 # gcc options for release and debug builds
7 IF(CMAKE_BUILD_TYPE STREQUAL Release)
8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
9 ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
10 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
11 ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
13 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
16 # Assume a Microsoft Visual C++ compiler
17 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:wchar_t-")