Skip to content

Commit

Permalink
cmake linux: don't restrict output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Cline committed Jul 13, 2011
1 parent a30a4a2 commit 025a7df
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ ENDIF()
SET(DFHACK_OUTPUT_DIR "${dfhack_BINARY_DIR}/bin" CACHE STRING "Where should be the produced libraries and binaries stored.")
SET(DFHACK_PLUGIN_OUTPUT_DIR "${DFHACK_OUTPUT_DIR}/plugins")

IF(UNIX)
# Make sure output directory is properly set
IF (NOT EXISTS "${DFHACK_OUTPUT_DIR}/df" OR
NOT EXISTS "${DFHACK_OUTPUT_DIR}/libs/Dwarf_Fortress")
message(FATAL_ERROR "DFHACK_OUTPUT_DIR must be directory containg game")
ENDIF()
ENDIF()

## where to put things during the build (force MSVC to behave)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${DFHACK_OUTPUT_DIR})
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${DFHACK_OUTPUT_DIR})
Expand Down

0 comments on commit 025a7df

Please sign in to comment.