• Advertisement
Sign in to follow this  

CMakeLists.txt patch

This topic is 2049 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Cheers


*** 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 ----
Edited by boltZar

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement