Skip to content
This repository
Browse code

more robust win32 directory finding?

  • Loading branch information...
commit a5c3db249bbed797eda891cb7fed9b4243fab14e 1 parent a68a8fc
royshil authored March 07, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  firebreath-plugin/Win/projectDef.cmake
3  firebreath-plugin/Win/projectDef.cmake
@@ -33,10 +33,11 @@ add_windows_plugin(${PROJECT_NAME} SOURCES)
33 33
 
34 34
 add_dependencies(${PROJECT_NAME} simple_templater)
35 35
 
  36
+get_filename_component(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
36 37
 add_custom_command(TARGET ${PROJECT_NAME} 
37 38
 	POST_BUILD 
38 39
 	COMMAND copy_binary_win32.bat ${CMAKE_CFG_INTDIR}
39  
-	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  40
+	WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/../"
40 41
 	)
41 42
 
42 43
 # This is an example of how to add a build step to sign the plugin DLL before

0 notes on commit a5c3db2

Please sign in to comment.
Something went wrong with that request. Please try again.