File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 2
2
# refer to the root source directory of the project as ${MFAST_SOURCE_DIR} and
3
3
# to the root binary directory of the project as ${MFAST_BINARY_DIR}.
4
4
5
- cmake_minimum_required (VERSION 2.8.12 )
5
+ cmake_minimum_required (VERSION 3.11.0 )
6
6
project (mFAST CXX )
7
7
8
8
# options to build tests, examples and packages
Original file line number Diff line number Diff line change 1
1
# Initialize CXXFLAGS.
2
- if (NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC" )
3
- set (CMAKE_CXX_FLAGS "-W -Wall ${CMAKE_CXX_FLAGS} " )
4
- endif ()
5
2
if (MSVC )
6
3
add_definitions (/D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS )
4
+ else ()
5
+ set (CMAKE_CXX_FLAGS "-W -Wall ${CMAKE_CXX_FLAGS} " )
7
6
endif ()
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ if (BUILD_SHARED_LIBS)
30
30
target_include_directories (mfast PUBLIC $< BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /src> )
31
31
target_link_libraries (mfast PUBLIC Boost::boost )
32
32
33
- if (NOT "${CMAKE_VERSION} " VERSION_LESS "2.8.12" )
34
- target_compile_definitions (mfast INTERFACE "-DMFAST_DYN_LINK" )
35
- endif (NOT "${CMAKE_VERSION} " VERSION_LESS "2.8.12" )
33
+ target_compile_definitions (mfast INTERFACE "MFAST_DYN_LINK" )
36
34
37
35
if (CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" ))
38
36
set_target_properties (mfast PROPERTIES COMPILE_FLAGS -fvisibility=hidden )
You can’t perform that action at this time.
0 commit comments