Skip to content

Commit

Permalink
add_library で SHARED → MODULE に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Sep 1, 2018
1 parent ef819f0 commit d617a48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sakura_lang_en_US/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ file(GLOB_RECURSE RESOURCE_FILES ./*.rc)
#endforeach( srcTemp ${SOURCE_FILES})

# define sources files of an executable
add_library(${project_name} SHARED ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES})
# 'MODULE' libraries are not linked directly.
# see https://cmake.org/cmake/help/v3.0/command/add_library.html
add_library(${project_name} MODULE ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES})

add_dependencies(${project_name} HeaderMake)

Expand Down

0 comments on commit d617a48

Please sign in to comment.