Skip to content

Commit 71c9756

Browse files
author
Dilawar Singh
committed
Updated cmake file; build directory is now part of directories to
search.
1 parent 2f0d93a commit 71c9756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ endif()
9292

9393
################################### TARGETS ####################################
9494

95+
link_directories(${CMAKE_BINARY_DIR})
9596
add_library(libmoose SHARED basecode/main.cpp)
9697
add_executable(moose.bin basecode/main.cpp)
9798

@@ -299,7 +300,6 @@ endif(APPLE)
299300

300301
add_dependencies(moose.bin libmoose)
301302
target_link_libraries(moose.bin moose ${CMAKE_DL_LIBS})
302-
set_target_properties(moose.bin PROPERTIES LINK_DIRECTORIES ${CMAKE_BINARY_DIR})
303303

304304
if( WITH_BOOST )
305305
target_link_libraries( moose.bin ${Boost_LIBRARIES} )

0 commit comments

Comments
 (0)