Skip to content

Commit

Permalink
BUILD: Don't prepend directory onto path in the automake parser
Browse files Browse the repository at this point in the history
Our automake paths are already absolute.
  • Loading branch information
DrMcCoy committed Jan 23, 2017
1 parent 0ea027f commit 8ed8aa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ if(NOT GLEW_FOUND)
message(STATUS "Using internal GLEW library")

add_definitions(-DGLEW_STATIC)
set(GLEW_LIBRARIES glew_glew)
set(GLEW_LIBRARIES glew)

add_definitions(-DXOREOS_INTERNAL_GLEW)
set(INTERNAL_GLEW 1)
Expand All @@ -316,10 +316,10 @@ list(APPEND XOREOS_LIBRARIES ${GLEW_LIBRARIES})

# use our own version of lua, as we will have to support the Witcher lua scripts
parse_automake(lua/rules.mk)
list(APPEND XOREOS_LIBRARIES lua_lua)
list(APPEND XOREOS_LIBRARIES lua)

parse_automake(toluapp/rules.mk)
list(APPEND XOREOS_LIBRARIES toluapp_toluapp)
list(APPEND XOREOS_LIBRARIES toluapp)


# -------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion cmake/CMakeAM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ endfunction()


function(am_target_name AM_FOLDER AM_FILE_NAME AM_OUTPUT)
get_filename_component(AM_FULLPATH "${AM_FOLDER}/${AM_FILE_NAME}" ABSOLUTE)
get_filename_component(AM_FULLPATH "${AM_FILE_NAME}" ABSOLUTE)
get_filename_component(AM_FOLDER "${AM_FULLPATH}" PATH)
get_filename_component(AM_FOLDER "${AM_FOLDER}" NAME)
get_filename_component(AM_FILE_NAME "${AM_FULLPATH}" NAME_WE)
Expand Down

0 comments on commit 8ed8aa6

Please sign in to comment.