Skip to content

Commit 53fe932

Browse files
committed
Properly create a library called Chaiscript.
This allows to properly use Chaiscript as submodule with CMake.
1 parent 651abc2 commit 53fe932

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ set(CHAISCRIPT_LIBS stdlib parser)
248248

249249
add_executable(chai src/main.cpp ${Chai_INCLUDES})
250250
target_link_libraries(chai ${LIBS} ${CHAISCRIPT_LIBS})
251-
target_include_directories(chai PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
251+
252+
add_library(chaiscript INTERFACE)
253+
target_include_directories(chaiscript INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
252254

253255
if(BUILD_SAMPLES)
254256
add_executable(sanity_checks src/sanity_checks.cpp)

0 commit comments

Comments
 (0)