Skip to content

Commit

Permalink
Fix CMake warning over INTERFACE_LINK_LIBRARIES / policy CMP0022.
Browse files Browse the repository at this point in the history
  • Loading branch information
expwnent committed Sep 27, 2015
1 parent f84ef11 commit e95aea9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# main project file. use it from a build sub-folder, see COMPILE for details

# prevent CMake warnings about INTERFACE_LINK_LIBRARIES vs LINK_INTERFACE_LIBRARIES
IF(CMAKE_VERSION VERSION_GREATER "2.8.12")
CMAKE_POLICY(SET CMP0022 OLD)
ENDIF()

# Set up build types
if(CMAKE_CONFIGURATION_TYPES)
SET(CMAKE_CONFIGURATION_TYPES Release RelWithDebInfo)
Expand Down Expand Up @@ -230,7 +235,7 @@ if (BUILD_DOCS)
set_source_files_properties(${SPHINX_OUTPUT} PROPERTIES GENERATED TRUE)
add_custom_command(OUTPUT ${SPHINX_OUTPUT}
COMMAND ${SPHINX_EXECUTABLE}
-q -b html
-a -E -q -b html
-c "${SPHINX_BINARY_BUILD_DIR}"
-d "${SPHINX_CACHE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}"
Expand Down
5 changes: 5 additions & 0 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
PROJECT (dfapi)
cmake_minimum_required(VERSION 2.8)

# prevent CMake warnings about INTERFACE_LINK_LIBRARIES vs LINK_INTERFACE_LIBRARIES
IF(CMAKE_VERSION VERSION_GREATER "2.8.12")
CMAKE_POLICY(SET CMP0022 OLD)
ENDIF()

## build options
OPTION(BUILD_DEVEL "Install/package files required for development (For SDK)." OFF)
OPTION(BUILD_DOXYGEN "Create/install/package doxygen documentation for DFHack (For SDK)." OFF)
Expand Down
2 changes: 1 addition & 1 deletion plugins/stonesense
Submodule stonesense updated 1 files
+5 −0 CMakeLists.txt

0 comments on commit e95aea9

Please sign in to comment.