Skip to content

Commit

Permalink
[CMake] Fix source -> list dir var for correct files locating
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorOrachyov committed Jul 5, 2021
1 parent 0c5ab41 commit 38a27e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ endif()
find_package(X11 REQUIRED)
find_package(OpenGL REQUIRED)

file(GLOB SOURCES_CXX ${CMAKE_SOURCE_DIR}/../shared/cc/*.cc ${CMAKE_SOURCE_DIR}/cc/*.cc)
file(GLOB SOURCES_CXX_IMPL ${CMAKE_SOURCE_DIR}/../shared/cc/impl/*.cc)
file(GLOB SOURCES_CXX ${CMAKE_CURRENT_LIST_DIR}/../shared/cc/*.cc ${CMAKE_CURRENT_LIST_DIR}/cc/*.cc)
file(GLOB SOURCES_CXX_IMPL ${CMAKE_CURRENT_LIST_DIR}/../shared/cc/impl/*.cc)
add_library(jwm SHARED ${SOURCES_OBJC} ${SOURCES_CXX} ${SOURCES_CXX_IMPL})

set(JAVA_HOME $ENV{JAVA_HOME})
Expand All @@ -33,7 +33,7 @@ if (NOT JAVA_HOME)
endif()
endif()

target_include_directories(jwm PRIVATE ${CMAKE_SOURCE_DIR}/../shared/cc ${JAVA_HOME}/include ${JAVA_HOME}/include/linux)
target_include_directories(jwm PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../shared/cc ${JAVA_HOME}/include ${JAVA_HOME}/include/linux)
set_target_properties(jwm PROPERTIES OUTPUT_NAME "jwm_${JWM_ARCH}")


Expand Down

0 comments on commit 38a27e0

Please sign in to comment.