Skip to content

Commit

Permalink
Merge pull request #36 from adnanyaqoobvirk/master
Browse files Browse the repository at this point in the history
Fixed compilation issues on linux in CMAKE files.
  • Loading branch information
bastibe committed Feb 19, 2016
2 parents 0f0e7df + 042de02 commit 2cdeb4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
@@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 2.8.8)
cmake_minimum_required(VERSION 2.8.12)

set(CMAKE_BUILD_TYPE_INIT "Release")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})

project(Lunatic)

find_package(Lua51 REQUIRED)
find_package(Lua 5.2 REQUIRED)
find_package(PythonLibs REQUIRED)

include_directories(${LUA_INCLUDE_DIR})
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -4,3 +4,6 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_definitions(-DLUA_LIB)

add_library(src OBJECT luainpython.c pythoninlua.c)
set_target_properties(src PROPERTIES
POSITION_INDEPENDENT_CODE TRUE)

0 comments on commit 2cdeb4e

Please sign in to comment.