Sign in to follow this  
boltZar

CMakeLists.txt patch

Recommended Posts

I've added pthreads to the CMakeLists.txt otherwise I was getting linking error in Ubuntu 12.04.

Cheers

[CODE]
*** CMakeLists.txt.old 2012-08-05 12:56:06.000000000 +0300
--- CMakeLists.txt 2012-09-10 21:39:33.000000000 +0300
***************
*** 93,100 ****
../../source/as_variablescope.h
)

! include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../include
! )

add_definitions("-D_CRT_SECURE_NO_WARNINGS -DANGELSCRIPT_EXPORT -D_LIB")

--- 93,99 ----
../../source/as_variablescope.h
)

! include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../include)

add_definitions("-D_CRT_SECURE_NO_WARNINGS -DANGELSCRIPT_EXPORT -D_LIB")

***************
*** 106,111 ****
--- 105,113 ----
add_library(Angelscript STATIC ${ANGELSCRIPT_SOURCE} ${ANGELSCRIPT_HEADERS})
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../lib)

+ find_package(Threads)
+ target_link_libraries(Angelscript ${CMAKE_THREAD_LIBS_INIT})
+
if(MSVC)
set_target_properties(Angelscript PROPERTIES COMPILE_FLAGS "/MP")
endif(MSVC)
***************
*** 113,117 ****
set(RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../../bin)

add_subdirectory(../../../samples/game/projects/cmake/ ./game)
- add_subdirectory(../../../tests/test_feature/projects/cmake/ ./test_feature)
- add_subdirectory(../../../tests/test_performance/projects/cmake/ ./test_performance)
--- 115,117 ----
[/CODE] Edited by boltZar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this