Skip to content

Commit 01fe69b

Browse files
committed
cleanup
1 parent 6f2146b commit 01fe69b

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

CMakeLists.txt

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
project(SpringMapConvNG)
2-
cmake_minimum_required(VERSION 3.0)
3-
4-
macro(use_cxx11)
5-
if (CMAKE_VERSION VERSION_LESS "3.1")
6-
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
7-
set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
8-
endif ()
9-
else ()
10-
set (CMAKE_CXX_STANDARD 11)
11-
endif ()
12-
endmacro(use_cxx11)
13-
14-
use_cxx11()
15-
16-
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
2+
cmake_minimum_required(VERSION 3.1)
173

4+
set (CMAKE_CXX_STANDARD 11)
185
find_package(DevIL REQUIRED)
196

207

@@ -30,7 +17,9 @@ set(MAPCONV_FILES
3017
add_executable(springMapConvNG src/main.cpp ${MAPCONV_FILES})
3118
add_executable(smfdecompiler src/decompiler.cpp ${MAPCONV_FILES})
3219

33-
if(FALSE) # change to TRUE when compiling with statix mxe
20+
option(MAPCONV_STATIC "link static" FALSE)
21+
22+
if(MAPCONV_STATIC)
3423
add_definitions(-DIL_STATIC_LIB)
3524
set(LINKLIBS png tiff lzma Half IlmImf IlmThread Iex jasper jpeg z)
3625
set_target_properties(springMapConvNG PROPERTIES LINK_FLAGS "-static" )

0 commit comments

Comments
 (0)